Questions tagged [flutter-state]
369 questions
0
votes
0 answers
How to store data locally and show and edit in input edit field in FLUTTER?
I have 2 screens
(1) SETTING screen
(2) Sign in screen
when I am enter username (TEXT EDITING FIELD) in setting screen and after pressing the save button application navigate to sign in screen above username displayed in sign in screen and when i…

Haroon Ahmed
- 21
- 1
- 3
0
votes
1 answer
Updating an object in Flutter is not working
I try to update an object in Flutter from a child widget. The object which I want to update was passed as param to the child. The problem: The object does not want to change. I work on a Stateful widget and update the state with setState, but…

Vueer
- 1,432
- 3
- 21
- 57
0
votes
0 answers
I am getting the following error NoSuchMethodError was thrown building Consumer(dirty, dependencies: [InheritedProvider]):
I am getting the following error NoSuchMethodError was thrown building Consumer(dirty, dependencies: [InheritedProvider]):
This is the app.dart file
class App extends StatefulWidget {
@override
State createState() {
return…

Aman.Dev
- 1
0
votes
1 answer
Unhandled Exception: setState() or markNeedsBuild() called during build. inside BlocListener
I'm new to flutter and trying to implement bloc in the application. I want to change the value of the flag through the event and refresh the state after the boolean value of the flag changes.
I tried to setState() inside the blog listener but…

Ankur Shinde
- 304
- 4
- 19
0
votes
1 answer
Flutter/Dart - How to update Image after Image Picker on other Screens
I'm using Flutter's Image Picker plugin in order to allow the user to change their avatar. When they go to their account page they see their regular avatar photo with a camera icon on top. Clicking the camera icon will allow them to either take a…

Meggy
- 1,491
- 3
- 28
- 63
0
votes
0 answers
Flutter: How do I prevent weird navigation in the case of showing HomePage only when user is verified through email?
Intended Flow: Only show the home page when the user verifies their email.
What is actually happening: The user can pop the navigation stack to show the home page.
I'm using Firebase to handle my authentication flow and currently am using a…

Damanjit Hundal
- 328
- 4
- 17
0
votes
1 answer
In a List of flutter multiselect, on selecting an item in one multiselect, all other multiselects with same item should get selected
I have multiple multi-select dropdowns with repeated options through the dropdowns.
Example Dropdown1 - Options [A,B,C,D]
Dropdown2 - Options [D,E,F,G]
So I want when I select Options A,D in the first dropdown, the option D of the second dropdown…

Hack Daniels
- 31
- 5
0
votes
1 answer
What is Wrong With My InitState in Flutter?
I am trying to do autologin with flutter and firebase and put it in an initState but it doesn't seem to be excuted because I tried to move it to Build Widget but nothing worked but when I put it inside LoginPageState It was excuted but with error…

OKKO
- 33
- 8
0
votes
1 answer
Resetting TextfieldController for all textfields, using provider
I'm having a problem trying to figuring out the proper way on how to do this. Basically in my app, I want to reset all the fields for "cleanup" by the user. I can reset everything, but the TextFields. The only way that I found to solve the problem…

Nindo
- 96
- 1
- 9
0
votes
2 answers
Not able to use provider in flutter for handling Authentication flow
If anyone is not able to understand my problem please inform
I have used Provider package to handle authentication flow.
What I am doing is : Main.dart -> Auth handler widget(Which contain stream builder to check the onAuthChange) -> Page…

Suraj Jha
- 199
- 14
0
votes
1 answer
How to store the value received through a method in another variable instance?
How to store the value received through a method in another variable instance?
I want to store the value passed to the Statefulwidget in an instance which I am not able to do. This is how I pass the value to the Statefulwidget's…
user13410550
0
votes
1 answer
Flutter - Text which changes dynamically Stateless or Stateful?
Suppose I have a text widget that changes dynamically (ie the text changes based on conditions, button clicks etc). So now is the Text stateless or Stateful?
As per definition "A stateless widget never changes. Icon, IconButton, and Text are…

Ankush Kapoor
- 445
- 1
- 8
- 20
0
votes
1 answer
Why won't any changes from NotifyParser render in the UI using Provider / ChangeNotifier / Streambuilder but will from a Service Class
Per the example code, any data coming from Ble_Service has no problems rendering changes in the UI via provider. But if I pass any of that data from Ble_Service to NotifyParser via changeParserInput() the json string makes it over but no matter the…

nejas
- 19
- 2
- 7
0
votes
1 answer
Provider on Stateful Widget - issue with parameter type
I have a class RedditAPIService where i am putting all the items methods related to DRAW plugin for Reddit.
I created an object for the class in a Stateless widget. (below the class _RedditAuthState extends State portion)
RedditAPIService reddit =…

NNY
- 13
- 2
0
votes
1 answer
Could not find the correct Provider above this ServerList Widget
I fail to understand why my FutureProvider fails to whereas my ChangeNotifierProvider works perfectly.
No matter what I do, it gives me the same error, even if I remove my ChangeNotifierProvider and replace it with FutureProvider or wrap my…

Arjun
- 19
- 1
- 5