skip to Main Content

Riverpod stateNotifierProvider state is null – Flutter

Even after setting the state of Riverpod stateNotifierProvider, the state is null when used in the widget. I have this provider final imageNotifierProvider = StateNotifierProvider.autoDispose<ImageNotifier, FilePickerResult?>( (ref) => ImageNotifier()); class ImageNotifier extends StateNotifier<FilePickerResult?> { ImageNotifier() : super(null); void addImage(FilePickerResult result)…

VIEW QUESTION

Create 2 side-by-side buttons in Flutter

I have a layout that would like to build the following layout: +-------------------------------+ # wrapped in Scaffold | Button 1 | +-------------------------------+ SizedBox(height: 15) +-------------------------------+ | Button 2 | +-------------------------------+ SizedBox(height: 15) +-------------------------------+ | Button 3 | +-------------------------------+ SizedBox(height: 15)…

VIEW QUESTION
Back To Top
Search