How to show either a drawer or a bottomNavigationBar

You can use the ternary operator:

Scaffold(
  appBar: rmoAppBar(subText: 'My Shifts'),
  drawer: globals.gblIsAndroid ? rmoMenu() : null,
  bottomNavigationBar: !globals.gblIsAndroid ? rmoBottomNavigationBar() : null,

    

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top