Drawer inside another drawer not taking up the whole screen Flutter

I am trying to nest an additional drawer inside a drawer. but though the first drawer is taking the whole screen the second doesn't.

I tried going througth the source code I can't figure out where the contraints are coming from can someone spot the issue.

Scaffold(
      key: _scaffoldKey,
      // appBar: AppBar(title: const Text('Navigation Bar Demo')),
      endDrawer: Container(
        width: width,
        child: Drawer(
          child: Scaffold(
              
              endDrawer: Drawer(
                child: Container(
                      
                  color: Colors.blue,
                  height: 100,
                ),
              ),
              body: Container(
                color: Colors.blue,
                height: 100,
              )),
        ),
body: ...
)


Read more here: https://stackoverflow.com/questions/65719717/drawer-inside-another-drawer-not-taking-up-the-whole-screen-flutter

Content Attribution

This content was originally published by bihire boris at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: