Issue I am new to flutter. I have userData that starts off as a blank dictionary and as users continue through the page it will fill up for example: var userData = { "Color": "muted", "Size": "42", } I would
Continue readingTag: flutter-provider
How to define a variable based on another variable in Flutter?
Issue I am building a Flutter app with a ChangeNotifier provider. When the app is started, I make a call to the Firebase api and save the results in a Provider variable: Map<DateTime,List> datesMap; How can I define another variable
Continue readingHow listen: false works in provider package in flutter?
Issue I made a program that shows a counter in the center of the screen. When you press the plus button the value of the counter should increase. This is the code I made first: import ‘package:flutter/material.dart’; import ‘package:provider/provider.dart’; void
Continue readingflutter_riverpod – Accessing a `Ref` when `context` is available
Issue I’m in the process of migrating my app to use flutter_riverpod package. At the moment, my app is using provider package to manage/deal with app state. I have a lot of static methods inside multiple utility classes that take
Continue readingHow to Stop the flutter rebuilds from ValueListenableBuilder?
Issue I’m having an issue of the widget subtree constantly rebuilding from inside the ValueListenableBuilder. It is supposed to run a rebuild on change, and in this case it is listening to a table on a Flutter Hive Database. Things
Continue readingFlutter ProviderNotFound Error, I'm trying to load the URL from a different class
Issue I was trying to make a videoplayer that can be paused by tapping the screen (like YouTube Short) but I was having a tough time working with Provider as I’m still new to it I was unable to access
Continue readingclear DropDownButton flutter
Issue i have a DropDownButton which add category for my product. after added product DropDownButton display category which i choosed. I want to refresh or clear DropDownButton after adding product. Better to display hint text. code: child: StreamBuilder<List<Categories>>( stream: categories,
Continue readingRiverpod in a class or outside of build Method?
Issue I want to make a class and put similar methods together. Riverpod works using ref which is only available through extending but how to use it in bare class which doesn’t have any extends and build methods. Model class
Continue readingHow to get the return of Futur function call with class Provider.of?
Issue I’m building an app with flutter and I have a question about Provider.of. In my Widget I call this : Provider.of<Auth>(context, listen: false).signup(emailController.text, passwordController.text); And I would like to navigate with Navigator according to the return of my signup
Continue readingWhy Hero doesn't work with Multiprovider?
Issue I have a list of cards. When I tap a card, the BoxViewPage opens. If I use Hero and Multiprovider together, I get an error, but, if I use Hero and MultiProvider individually everything works correctly Why? List of
Continue reading