How to hide android's bottom navigation bar in flutter

前端 未结 3 1567
渐次进展
渐次进展 2020-12-28 20:23

I\'m really new in flutter and also in Android dev, but is it possible to hide the bottom navigation bar (see which item do i mean below) programmatically?

相关标签:
3条回答
  • 2020-12-28 21:08

    For specifies the set of system overlays to have visible when the application is running. you can use below static method:

      SystemChrome.setEnabledSystemUIOverlays(List<SystemUiOverlay> overlays)
    

    Examples :

    1 - For Hide bottom navigation bar and Still Status bar visible

    SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.top]);
    

    2 - For Still bottom navigation visible bar and Hide Status bar

    SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.bottom]);
    

    3 - For hide both bottom Navigation and Status bar

    SystemChrome.setEnabledSystemUIOverlays([]);
    

    4 - For make both visible

     SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.top, SystemUiOverlay.bottom]);
    
    0 讨论(0)
  • 2020-12-28 21:12

    Use SystemChrome.setEnabledSystemUIOverlays([]) to hide the status bar and the navigation bar.

    0 讨论(0)
  • 2020-12-28 21:13

    Try this: SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.top]);

    Document

    0 讨论(0)
提交回复
热议问题