Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make flutter application fullscreen

How can I make a flutter application fullscreen. I already found out how to hide the status bar Hide Android Status Bar On Flutter App. but I can't seem to find how to hide the android navigation bar.

like image 233
Bobola Avatar asked Oct 09 '17 06:10

Bobola


People also ask

How do I hide the taskbar in flutter?

To Hide StatusBar user can try the below things: SystemChrome. setEnabledSystemUIOverlays([]) should do what you want.


2 Answers

It's exactly like for Android status bar.

Doing SystemChrome.setEnabledSystemUIOverlays([]) hides both the status bar and the navigation bar.

p/s : use this SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values); to disable full screen mode.

like image 60
Rémi Rousselet Avatar answered Sep 16 '22 12:09

Rémi Rousselet


// to hide only bottom bar: SystemChrome.setEnabledSystemUIOverlays ([SystemUiOverlay.top]);  // to hide only status bar:  SystemChrome.setEnabledSystemUIOverlays ([SystemUiOverlay.bottom]);  // to hide both: SystemChrome.setEnabledSystemUIOverlays ([]); 
like image 40
Jawad Avatar answered Sep 19 '22 12:09

Jawad