Relative Content

Tag Archive for flutterflutter-navigation

Navigationbottombar theme is not responding when ThemeMode is changing with provider

I have a navigation bottom bar listening changes in provider. Also I have provider for themeMode changes. I save the changes of theme mode to the hive. When theme mode changes in the application with user click, navigation bottom bar colors are not responding according to the mode of phone. I don’t want to change ConsumerWidget to ConsumerStatefulWidget. So how can i change navigation bottom bar colors depend on mode selection?

Navigationbottombar theme is not responding when ThemeMode is changing with provider

I have a navigation bottom bar listening changes in provider. Also I have provider for themeMode changes. I save the changes of theme mode to the hive. When theme mode changes in the application with user click, navigation bottom bar colors are not responding according to the mode of phone. I don’t want to change ConsumerWidget to ConsumerStatefulWidget. So how can i change navigation bottom bar colors depend on mode selection?

Navigationbottombar theme is not responding when ThemeMode is changing with provider

I have a navigation bottom bar listening changes in provider. Also I have provider for themeMode changes. I save the changes of theme mode to the hive. When theme mode changes in the application with user click, navigation bottom bar colors are not responding according to the mode of phone. I don’t want to change ConsumerWidget to ConsumerStatefulWidget. So how can i change navigation bottom bar colors depend on mode selection?

Flutter BuildContext navigation

I want to use the Navigator, but I get the error: Navigator operation requested with a context that does not include a Navigator, when I click on the floatingButton, I decided to make the same button for each note presented in the list, because the buttons that are already there work fine, the floattingButton for adding an note also works fine there. As I understand it, there is something wrong with the BuildContext, perhaps due to Future and async/await.

Flutter AppBar that always stays no matter what

AIM: I wish to make my flutter app also on the web, hence, like most websites, I want it to have an AppBar that is always there no matter how many screens (routes) I push or where I navigate.

Pop event not captured inside overlay

I am trying to display an overlay that closes when the native back button is pressed (or activated by gesture).
I have a PopScope widget inside an OverlayEntry which onPopInvoked method is not being called when supposed to, but the pop event is actually happening and detected by other parent PopScopes.

How to navigate using the navigator key little bit complex?

I have created app where the user get notification when user tap on the notification it’s goes to notification history page here simply I push the notification screen in stack when the other notification comes on the Notification screen then user tap on the screen then did not push the notification screen again in the stack and also the notification pop up is made out using Dialog so the tap event listen from the other file so to navigate to screen I use the global navigator Key to do navigation in the app. For the temporary usage I am completely replace that screen with notification screen but here is the problem is the it’s delete the whole state so while navigate to the other screen the whole screen is reload again so how to resolve this navigation problem?