skip to Main Content

Flutter – Could not find the correct Provider<SplashCubit> above this BlocBuilder<SplashCubit, SplashState> Widget

Please help This is my MyApp Class class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, title: 'Instagram', theme: ThemeData( primarySwatch: Colors.blue, inputDecorationTheme: InputDecorationTheme( enabledBorder: OutlineInputBorder( borderSide: BorderSide(width: 1, color: Colors.white.withOpacity(0.2)), ), focusedBorder:…

VIEW QUESTION

Flutter – Riverpod 2.0 – How to access onDispose callback?

I have this class class EntryController { final TabController? tabController; final List<DictionaryEntry> history; EntryController({ required this.history, this.tabController, }); EntryController copyWith({ TabController? tabController, List<DictionaryEntry>? history, }) { return EntryController( history: history ?? this.history, tabController: tabController ?? this.tabController, ); } } And…

VIEW QUESTION
Back To Top
Search