How to make flutter app draw behind android navigation bar and make navigation bar fully transparent?

后端 未结 4 1483
心在旅途
心在旅途 2021-02-01 13:24

I would like to make my Flutter app take up the entire screen in Android while still showing both the status bar and the navigation bar, with both of them transparent, to achiev

4条回答
  •  醉梦人生
    2021-02-01 13:50

    So if you are using Flutter the procedure is:

    1. Set AppBar() color to transparent.
    2. Set extendBeyondAppBar to true.
    3. Set elevation to 0.

    As an example:

        return Scaffold(
            extendBodyBehindAppBar: true,
            appBar: AppBar(
               elevation: 0,
               )

提交回复
热议问题