Make flutter application fullscreen

前端 未结 7 1490
忘了有多久
忘了有多久 2020-12-25 10:05

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

7条回答
  •  Happy的楠姐
    2020-12-25 10:31

    this is my experience if i add SystemChrome.setEnabledSystemUIOverlays([]); in init or dispose , status bar and navigation bar will back when you use keyboard , but if you use it like this it work perfect:

      @override
      Widget build(BuildContext context) {
    
        // To make this screen full screen.
        // It will hide status bar and notch.
        SystemChrome.setEnabledSystemUIOverlays([]);
    
        // full screen image for splash screen.
        return Container(
                child: new Image.asset('assets/splash.png', fit: BoxFit.fill));
          }
        }
    

    inside of your widget

提交回复
热议问题