We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug There is no way to handle the "done" event on the stream of a StreamProvider. In particular, a StreamProvider constructed using an empty stream will stuck forever in the "loading" state.
To Reproduce
final provider = StreamProvider((ref) => const Stream<int>.empty()); class MyWidget extends ConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) => ref.watch(provider).when( data: (x) => Text(x.toString()), error: (e, st) => const Text('Error'), loading: () => const Text('Loading'), ); }
The widget is stuck in loading.
Expected behavior There should be a way to find out if the AsyncValue is done.
AsyncValue
The text was updated successfully, but these errors were encountered:
rrousselGit
No branches or pull requests
Describe the bug
There is no way to handle the "done" event on the stream of a StreamProvider. In particular, a StreamProvider constructed using an empty stream will stuck forever in the "loading" state.
To Reproduce
The widget is stuck in loading.
Expected behavior
There should be a way to find out if the
AsyncValue
is done.The text was updated successfully, but these errors were encountered: