Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about flutter-drawer

Read more about flutter-drawer

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - flutter-drawer

Closing Drawer on Bottom Navigation Bar click, Flutter

I want to close my Drawer widget every time the user presses a button in the Bottom Navigation Bar, but can't quite figure this thing out. The way my setup of the BNB is set now is that the current st...
test-img

GrandMagus

flutter

mobile

flutter-bottomnavigation

flutter-drawer

Votes: 0

Answers: 1

Latest Answer

A good way to do this is to use a GlobalKey for your scaffold. So, for all your scaffolds, you define them using: class SomeClass extends StatelessWidget { final scaffoldKey = GlobalKey<ScaffoldS...
test-img

jeremynac

The onTapped of my Drawer tiles gets executed when i click my drawer menu button

So I made a custom app drawer for my flutter app. but now when I click my open drawer menu button, The first else statement of my widget tree gets executed. I am relatively new to flutter. Does anyone...
test-img

Vignesh Jagannadhan

flutter

dart

if-statement

navigation-drawer

flutter-drawer

Votes: 0

Answers: 1

Latest Answer

I haven't tested it, but I suspect the error is here: onTap: onPressed!(),. Change it to onTap: () {onPressed!();} , or even better onTap: onPressed,.
test-img

Ralph Bergmann

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved