skip to Main Content

Flutter – ProviderNotFoundException when using multiple cubit in the MultiBlocProvider

I've been using cubit for my flutter project. This is how my main.dart looks like, void main() async { WidgetsFlutterBinding.ensureInitialized(); // Set system preferences before running the app await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle( statusBarColor: Colors.transparent, )); runApp(MultiBlocProvider(providers: [ BlocProvider<ThemeCubit>( lazy: false,…

VIEW QUESTION
Back To Top
Search