Questions tagged [flutter-drawer]
30 questions
2
votes
1 answer
How can I navigate to a new screen while closing a Flutter drawer using go_router?
When navigating in a drawer, the drawer disappears instead of showing the sliding close animation. I'm using go_router and placing a scaffold on every screen.
Is there a way to navigate to a new screen while the drawer is closing? I don't want to…

SP86
- 21
- 2
2
votes
1 answer
flutter_inner_drawer error: type 'List' is not a subtype of type 'List' in type cast
Using flutter_inner_drawer: ^1.0.0+1 I got a error thats is type
'List' is not a subtype of type 'List' in type cast
my code:
final GlobalKey _innerDrawerKey =
GlobalKey();
InnerDrawer(
…

Fuad Mostafij
- 47
- 2
- 8
2
votes
1 answer
Body of a Scaffold is rebuilt when opening a Drawer menu
I have a Stateful widget which builds a Scaffold. I am using a drawer in the Scaffold for a side menu. Also, the body of the Scaffold is a FutureBuilder which gets data from firestore database and displays the info in a Card in the body. There seems…

Tarique
- 463
- 3
- 16
2
votes
2 answers
Is there a way to detect if there is any open drawer?
I have a Flutter app that displays an animation. I want the animation to pause if there is an open Drawer or a modal dialog (like showModalBottomSheet) displayed anywhere in the App.
I could handle the events of a specific Drawer directly and manage…

Fox32
- 13,126
- 9
- 50
- 71
1
vote
1 answer
Flutter: shadow color of the drawer
I want to use Drawer.
When the Drawer unfolds - as you can see in the video in the link - the background or the rest of window is shadowed to let the user focus on the drawer.
I feel that the shadow is very dark, is there any way to change the…

Uwe.Schneider
- 1,112
- 1
- 15
- 28
1
vote
2 answers
How to hide admin menu from user Flutter navigation drawer
I'm trying to hide the admin menu from normal users. Storing login response and role in shared preferences, where isAdmin variable has boolean data, where its stored login provider.
Please find the code which I tried:
[
buildMenuItem(
text:…

saravanan G
- 21
- 3
1
vote
3 answers
Flutter, Overflow in Drawer's DrawerHeader
The problem may not be just for the Drawer or DrawerHeader widgets, but on how Expanded or Flexible may work inside a DrawerHeader widget combined with Column and Row widgets.
My code with my Drawer is simply like this:
import…

Roar Grønmo
- 2,926
- 2
- 24
- 37
1
vote
1 answer
Flutter add Image Inside Canvas Circle
I put animated widgets that move from right to left on the home screen of my application. Here I drew circles using Canvas. I want to place images related to imageUrl inside these circles. Here, when I tried to place it with drawImage, the photos…

Büşra Yamaner
- 11
- 2
1
vote
3 answers
How to close the navigation drawer when returning back from a particular screen automatically in flutter?
I am working on a flutter project which has a navigation drawer with three routes. Whenever i go to a particular route and come back, the navigation drawer gets opened automatically. I want the navigation drawer to remain closed until and unless the…

Arijeet
- 935
- 5
- 19
1
vote
1 answer
Flutter Drawer is not working on pages except home
I have a page that contains body and a drawer, which opens after signin in.
The problem is the drawer only works when it is set as a Home page of MaterialApp, but in my case, Home page is my login page where user should login to proceed
Is there any…

Gadiyevich
- 67
- 1
- 7
1
vote
1 answer
How to detect the outside of the drawer
How to detect the outside in the image?
To open the drawer I already know its function, but to tap the right side of the drawer I don't know
Any help would be appreciated.

Royhan Rahim
- 13
- 3
1
vote
2 answers
Flutter: How to write if-else statement to call drawer?
I am trying to make a drawer in the class DetailedPage only when the previous class was CameraPage. To achieve this, I create a variable String previousScreen = 'CAMERA' and passed the variable to the class DetailedPage. However, I am having…

gsk
- 107
- 11
1
vote
1 answer
How can i use flutter drawer menu in page routing?
i am new to flutter also coding.
what i want to do:
to add drawer menu to main.dart, it will return Scaffold for all pages in the menu.
in every page i want to use different Scaffold. (appbar & body)
i created pages, routes, drawer; but i couldn't…

asysl
- 23
- 4
1
vote
0 answers
Flutter Drawer is not working properly in other pages
I have a drawer class in common for 3 pages. Here my problem is if i open any list item page in drawer while in main screen its working fine. if i goto some page(say page2 screen) other than main screen, now if i open any list item in drawer it…

Abreeth
- 87
- 1
- 11
0
votes
0 answers
Flutter: Convert a straight line of arbitrary length and direction into a wiggly line
I recently started playing around with Flutter. I am also a complete beginner in terms object-oriented programming, so my question is probably quite basic, but I couldn't figure it out the whole weekend.
I am using customPain to draw freely and/or…

Thomas
- 11
- 3