Questions tagged [flutter-change-notifier]
189 questions
0
votes
1 answer
Flutter - MultiProvider (ChangeNotifierProvider) doesn't work
ChangeNotifierProvider doesn't work! I don't know what is the problem.
Could anyone tell me what's wrong with this code?
Thank you
I want to pass the test value to the next page.
Here is the main function and the providers
void main()…

Abdulsalam Fadhel
- 71
- 2
- 9
0
votes
1 answer
How to implement Change Notifier along with moor?
I am trying to make an app having a database it has a table Students
class Students extends Table{
IntColumn get RollNumber=>integer().autoIncrement()();
TextColumn get Name => text().withLength(min: 3,max:32)();
Students( String name){
…

Ashu
- 97
- 2
- 11
0
votes
1 answer
notifyListeners() Not Updating UL at the same Time
I'm new developer on flutter and i blinding app using flutter So I'm using Provider packet and i need change widget UL when Bluetooth state was change i made the code that doing this but in my code the widget UL change after run app the second time…

mohmmed ali
- 805
- 1
- 5
- 10
0
votes
2 answers
Use of Double dot (..) operator / cascading in ChangeNotifierProvider
ChangeNotifierProvider(
builder: (context) => AppStateModel()..loadBrands(),
child: MyTestApp(),
)
Why we have to call like this AppStateModel()..loadBrands(), how is cascading helping us here?

Ankit
- 11
- 1
0
votes
0 answers
Flutter Provider
Trying to update this for the new provider - changed the first builder to create, but it give a no return error. Thank you
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return…

Marc Mathys
- 1
- 2
0
votes
1 answer
Function in ChangeNotifier Class Not Called
I have a Flutter App with Provider as a State Manager. The ChangeNotifierProvier is at the very top of my app (ie. above MaterialApp widget).
I have a ChangeNotifier class as follows:
class AmountManager extends ChangeNotifier {
String amount;
…

Baseduo
- 35
- 1
- 1
- 10
0
votes
1 answer
How to call changeNotifier in the main.dart that already have one before in flutter?
I used a provider to display data from firestore in one page and in turn I passed the data to second page and I called the changenotifier in main.dart .
But whenever I am trying to navigate to second page it will show me this error :
"I/flutter (…

mutairu
- 67
- 6
- 16
0
votes
0 answers
how to route to another page without using navigator
I am using MSAL to authenticate users, with a ChangeNotifierProvider. I am trying to navigate to another page from the MSAL login but Navigator.push needs to be used in a widget. How do i navigate to another page without using Navigator.push? Or is…

Wei Xiong
- 167
- 4
- 13