skip to Main Content

Android Studio – i am having problem on creating bottomNavigationView related to height, the height is doubled as i expected even when the height is set to wrap

<com.google.android.material.bottomnavigation.BottomNavigationView android:id="@+id/bottomAppBar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/primary" app:itemIconSize="20dp" app:itemTextAppearanceActive="@style/BottomNavigationView.Active" app:itemTextAppearanceInactive="@style/BottomNavigationView.Inactive" android:layout_alignParentBottom="true" app:menu="@menu/bottom_menu"/> enter image description here i am expecting default height of the bottom navigation view.

VIEW QUESTION

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