skip to Main Content

Flutter – How to add Navigator to bottomNavigationBar?

With the current code, on click of back button, the app exits instead of moving to the previous page. import 'package:curved_navigation_bar/curved_navigation_bar.dart'; class homeNav extends StatefulWidget { const homeNav({super.key}); @override State<homeNav> createState() => _homeNavState(); } class _homeNavState extends State<homeNav> { int…

VIEW QUESTION

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