How do I make the Navigation Drawer of my Flutter app transparent?

flutter drawer header
flutter drawer icon
flutter navigation drawer github
close drawer flutter
flutter drawer animation
flutter drawer width
flutter drawer icon color
flutter bottom drawer

I have built a native Android App which has a transparent navigation drawer. I have been asked to build the same app using Flutter and I have gotten to the point where I would like to implement a transparent navigation drawer. How do I make the Navigation Drawer of my Flutter app transparent because I have been struggling on that end ? I have already tried

drawer: Drawer(
          child: Container(
            color: Colors.transparent,)),

The navigation drawer just remains white. I have been searching for a solution to this and cant find one. Any help would be appreciated. I have attached images of the Native App with a transparent drawer and the Flutter version with a white Navigation drawer


I think there's a better way of doing this without messing up the entire canvases on the app. Since you want it specifically for the drawer, try this approach.

Scaffold(
   drawer: Theme(
      data: Theme.of(context).copyWith(
       // Set the transparency here
       canvasColor: Colors.transparent, //or any other color you want. e.g Colors.blue.withOpacity(0.5)
      ),
      child: Drawer(
          // All other codes goes here. 
       )
    )
 );

How do I make the Navigation Drawer of my Flutter app transparent?, I have built a native Android App which has a transparent navigation drawer. I have been asked to build the same app using Flutter and I have  Questions: 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 achieve the full screen look like in iOS. The status bar color can be easily changed, but right now I’m facing problems


After much tinkering around I managed to find a solution. I edited the ThemeData and added a canvas color as described below

theme: new ThemeData(
   canvasColor: Colors.transparent
 ),

This isn't the best way to do this, it is more of a workaround than anything.

Visual Representation

How to create a transparent Navigation Drawer in Flutter, You can copy and adopt this source code example to your Flutter project without reinventing the wheel. The code is based on flutter version 1.0.0. Main.dart (App​  Please suggest me a way how can i create common drawer for few screens in flutter. I have tried this: Flutter: Setting up a Navigation Drawer with Multiple Fragments (Widgets). (this makes my whole


use the transparent color like you are currently doing but also in the drawer widget use a stack and inside it make the first widget a backdropfilter, you will need to import dart:ui. here is an example

//import this library to use the gaussian blur background
import 'dart:ui';


Scaffold(
    appBar: AppBar(
        title: Text('Title'),
    ),
    drawer: Theme(
        data: Theme.of(context).copyWith(canvasColor: Colors.transparent),
        child: sideNav()),
        body: Text('Hello Body'),
),


Drawer sideNav(){
    return Drawer(
        child: Stack(
            children: <Widget> [
                //first child be the blur background
                BackdropFilter(
                    filter: ImageFilter.blur(sigmaX: 5.0, sigmaY: 5.0), //this is dependent on the import statment above
                    child: Container(
                        decoration: BoxDecoration(color: Color.grey.withOpacity(0.5))
                    )
                ),
                ListView(
                    padding: EdgeInsets.zero,
                    children: <Widget>[
                        DrawerHeader(
                            child: Text('Hello Drawer Title')
                        ),
                        ListTitle(
                            leading: Icon(Icons.dashboard, color: Colors.white)
                            title: "Dashboard"
                            onTap: (){

                            }
                        )
                    ]
                )
            ]
        )
    );
}

Add a Drawer to a screen, Steps to Reproduce Goal: Have a transparent drawer including the 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin this case the App widget) and // used by the build method of the State. Fullscreen page with transparent AppBar As far as I know, these are the 2 way nicest ways of achieving fullscreen pages with or without transparent AppBar. You can see which method suits your needs better.


Unable to Change background color of UserAccountsDrawerHeader , Being able to do a transparent (including hit tests) app bar like that would be super sweet. This is a screenshot from my current project, where the body It means: extend the body behind the Scaffold's bottom navigation bar  The navigation drawer is a UI panel that shows your app’s main navigation menu. It is hidden when not in use, but appears when the user swipes a finger from the left edge of the screen or, when at the top level of the app, the user touches the drawer icon in the app bar.


Getting the body behind transparent Appbar · Issue #17088 · flutter , Lectures by Walter Lewin. They will make you ♥ Physics. Recommended for you · 49:13 Duration: 1:02 Posted: Sep 11, 2018 Now talk about Navigation Drawer in flutter. When I first created and application with Navigation Drawer it felt like magic, thanks to flutter development team because with only one line of code


Opacity (Flutter Widget of the Week), Flutter- Google's latest innovation for mobile, web, and desktop apps - Duration: 36:21 Duration: 16:41 Posted: Aug 11, 2019 In apps that use Material Design, there are two primary options for navigation: tabs and drawers. When there is insufficient space to support tabs, drawers provide a handy alternative. In Flutter, use the Drawer widget in combination with a Scaffold to create a layout with a Material Design drawer. This recipe uses