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

I am trying to implement a bottom navigation bar in a flutter app but I keep getting errors in my source code

class BottomNavigationBar extends StatefulWidget { const BottomNavigationBar({super.key}); @override State<BottomNavigationBar> createState() => _BottomNavigationBarState(); } class _BottomNavigationBarState extends State<BottomNavigationBar> { List views = [ const HomeView(), const CurrentLocationView(), const ProfileView(), const SettingsView() ]; int currentIndex = 0; void onTap(int index) { currentIndex…

VIEW QUESTION
Back To Top
Search