Search code examples
androidfluttershadowappbar

How can I remove shadow above AppBar for Android in Flutter?


How can I remove the shadow above the AppBar for Android in Flutter? On the iOS Simulator the following Code works fine.

enter image description here

Code:

    return Scaffold(
        extendBodyBehindAppBar: true,
        appBar: AppBar(
          backgroundColor: Colors.transparent,
          shadowColor: Colors.transparent,
          elevation: 0.0,
          title: Text('Title'),
        ),
        body: Container(
          decoration: BoxDecoration(
            image: DecorationImage(
              image: AssetImage('images/background_01.jpg'),
              fit: BoxFit.cover,
            ),
          ),
          child: SafeArea(
            child: Column(
              children: [
                Container(),
                Container(),
              ],
            ),
          ),
        ));

Solution

  • it's status Bar try to change the status Bar