Skip to main content
0 votes
0 answers
25 views

Problems with the bloc [closed]

I'm having trouble with the block, don't understand much and this assignment has been sticking around for a long time. I am already confused in my code. The problem is that when I press a button in ...
LISA BRO's user avatar
0 votes
2 answers
37 views

Flutter Error: Could not find correct Provider above this HomeScreen Widget

I am building a Flutter app with multiple providers, and I encounter an error when trying to access my SignInProvider from the HomeScreen widget. The error message is: Error: Could not find the ...
Dasun Dola's user avatar
0 votes
2 answers
92 views

Riverpod problem with instantiating multiple providers of same type

This is more about a theoretical discussion of flutter riverpod state management package. Currently I am trying to migrate one kinda huge project from Provider to Riverpod and I encountered an issue ...
Pavel Pek's user avatar
0 votes
0 answers
37 views

Flutter not refreshing instantly on Xiaomi devices having HyperOS 2

I have a Flutter app, working for months on multiple devices smoothly, I use Provider for sharing resources, like theme, across app, this is my code to change to darkmode: Future<void> ...
AVEbrahimi's user avatar
  • 19.1k
1 vote
0 answers
55 views

How do I read a Riverpod provider within a Class or Stream without Ref or context?

I have a Class I use for backend, within which I have a Stream that Streams data from Firebase, as shown below. I need to access the data from a Riverpod Provider to specify the Firebase collection ...
Dan12314's user avatar
  • 115
0 votes
0 answers
47 views

Unable to link DropdownButton to TextFormField in flutter using provider

Problem: I'm trying to link the value of a dropdown to a text field in Flutter. I'm using Provider for state management. The value from the dropdown updates the state correctly, but the text field is ...
Nk C's user avatar
  • 1
0 votes
1 answer
59 views

How do I use Provider between Widgets?

I'm facing an annoying problem about the Provider package. I want to implement the night mode switch. I've tried to use the Provider in a separate screen and it works, but obv where I would need him, ...
Geremia Moretti's user avatar
0 votes
0 answers
59 views

How to reset Multi Bloc provider in the root of the Flutter widget tree when logging out the user

return HiveListener( box: Hive.box('SETTINGS'), builder: (bx) { return MultiBlocProvider( providers: [ BlocProvider(create: (context) => ...
Rohan Shrestha's user avatar
0 votes
0 answers
30 views

why absolute path gets BlocProvider related error in flutter?

when I use the following code snippet in flutter import 'package:flutter/material.dart'; import 'package:flutter_app/features/note/presentation/screens/note_list.dart'; import 'package:flutter_app/...
Emam Kownine's user avatar
0 votes
1 answer
70 views

Unable to render widget dynamically in Flutter using Provider?

I am trying to display widget(s) dynamically based on the empty/non-empty state of a TextField widget. Below is the code I've written. But the code does not dynamically create the widget even when I ...
rusty's user avatar
  • 208
0 votes
1 answer
36 views

Why won't Provider rerun its create() when its parent StatelessWidget is re-running build()?

I know the more common ways to handle this kind of a thing involve using a ChangeNotifierProvider(CNP), etc., but I want to understand how Provider actually works. If I have a StatelessWidget with a ...
Brian Thompson's user avatar
0 votes
1 answer
54 views

Dart Riverpod merging two providers of the same type

I am looking for a way to combine two providers (that both emit the same type of values) into one such that the resulting provider emits the most recent value emitted by either of the two input ...
gruvw's user avatar
  • 900
0 votes
0 answers
27 views

Flutter Localization can not chanage language (using riverpod)

I am using the localization package with Riverpod. However, when I change my locale variable, the application language does not change. How can I fix this? changing lacale variable: if (locale != ...
Mert's user avatar
  • 278
1 vote
1 answer
61 views

Why is dispose method not being called?

I was trying to use provider for managing the state of TextField Controller and below is the code for the provider I'm using. I want to know why is dispose called! not being printed out to the console ...
Abel's user avatar
  • 77
0 votes
0 answers
21 views

Could not find the correct Provider<LevelProvider> above this HomeBody Widget | flutter

I have 2 function to build the tileWithCounter (listBuild,gridBuild) but only one of them works(gridBuild) i copy the code in the first function to the second but that does not make it works i know ...
Hesham Alnahas's user avatar

15 30 50 per page
1
2 3 4 5
118