flutter-state Questions
4
i have a screen with three widget [widgetA, widgetB, widgetC]
and i have a bloc[BlocA] which is responsible for the data fetching and displaying on this screen
i have three event [eventA, eventB, e...
Edgaredgard asked 11/2, 2022 at 8:6
5
So, I have made a function in Cubit Class it is to get data from API. For now I just can get the data if I pressed a button. I wanna make the function automatically called when the page/screen is o...
Scofield asked 3/11, 2021 at 1:43
7
Solved
I am refactoring my Flutter application code by adding Provider as a state management.
Desired behavior: When Home screen opens, app should check if users email verified, if it's not then should ...
Bra asked 21/2, 2020 at 17:27
14
Solved
I have noticed a new lint issue in my project.
Long story short:
I need to use BuildContext in my custom classes
flutter lint tool is not happy when this being used with aysnc method.
Example:
MyC...
Arrhenius asked 21/8, 2021 at 9:47
3
I am facing an issue in which dispose method is not called after changing screen in flutter .First of all here is the source code.
class Game extends StatefulWidget {
Game({Key key, this.title})...
Glennieglennis asked 5/5, 2020 at 10:53
1
Solved
I want to build a math app with Flutter. It should have basic functions. However, I am facing the following issue: when my timer runs out and I am directed to the next page, the following error mes...
Rhumb asked 5/4, 2023 at 11:45
1
I'm working on an application that uses cubits to manage the state.
Very often when I need to make an API request I need to get my current localization (handle possible exceptions) and then send it...
Colugo asked 23/6, 2022 at 22:30
2
Solved
Maybe I don't understand the purpose of BloC or Provider but I'm confused as to why we would ever want to use them instead of using Flutter's built-in state management using the Stateful widget. I'...
Choochoo asked 13/10, 2022 at 0:33
2
What is difference between valueNotifier,changeNotifier,stateNotifier?
Millsap asked 14/4, 2022 at 11:9
0
I am using Navigator 2.0 and I have my state stored inside the RouterDelegate so that I can have the currentConfiguration react to state changes.
This is like all examples I saw. For example:
Book...
Aleph asked 27/7, 2022 at 14:52
1
Solved
I have a Stateless-Provider widget along with its ChangeNotifier-model. Inside the Provider, there is a Stateful widget. When notifyListeners is called, all widgets in the stateless widget get upda...
Wilderness asked 10/7, 2022 at 10:31
2
Solved
I am a beginner in Dart language development. I try to create a sample flutter application BLOC pattern inspired by this GitHub repo, but I got some error message related to the class inheritance. ...
Taxiplane asked 22/11, 2020 at 12:46
1
Solved
How does Flutter rebuild/repaint work in case of:
Creating a Stateless widget inside a Stateful widget.
Creating a Stateful widget inside a Stateless widget.
Does a Stateless widget inside a Stat...
Panga asked 28/2, 2022 at 10:21
2
Solved
I'm starting to use riverpod and I'm trying to migrate my existing code which was using provider.
With provider, the Providers were scoped in the widget tree. Only the children of the Provider widg...
Evolutionist asked 18/2, 2022 at 1:41
2
Solved
Flutter riverpod is not notifying the Consumer on the state change when the StateNotifier's type is List, while the same implementation works just fine for other types.
here, I provided a minimal r...
Panpsychist asked 9/8, 2021 at 12:12
1
Solved
One of the main mecanism of Flutter Navigator 2.0 it the function onPopPage inside RouterDelegate > build > Navigator. However, I do not understand when route.didPop(result) returns false.
We...
Radical asked 10/11, 2020 at 16:5
2
I know there have been certain questions on state management in flutter, but none of them seemed to solve my use case.
Recently I was building an app based on E-commerce and encountered this real n...
Mold asked 8/7, 2020 at 6:26
1
I am learning state management in flutter and most of the time I encounter with words business logic ui logic and some time presentation logic, I searched it on the internet as people explain it in...
Messaline asked 21/5, 2020 at 5:13
2
Solved
I am trying to implement custom logout solution for my application, where no matter where user currently is, once the Logout button is clicked, app will navigate back to Login page.
My idea was, t...
Joliejoliet asked 7/2, 2020 at 6:58
1
© 2022 - 2025 — McMap. All rights reserved.