Open Tommy-Wang0602 opened 3 months ago
.
issue description: I use svg img to be PersistentBottomNavBarItem icon arg, however I can't find any solution to modify the padding after using title arg
PersistentBottomNavBarItem
icon
title
assets code : SvgPicture.asset( 'assets/bottom_nav_icon/svg_icons/dashboard_24dp_unselected.svg', height: imgSizeHeight, width: imgSizeWidth, fit: BoxFit.contain, );
SvgPicture.asset( 'assets/bottom_nav_icon/svg_icons/dashboard_24dp_unselected.svg', height: imgSizeHeight, width: imgSizeWidth, fit: BoxFit.contain, );
PersistentBottomNavBarItem code : PersistentBottomNavBarItem( icon: BottomNavSvgIcons.baseSelected, inactiveIcon: BottomNavSvgIcons.baseUnselect, title: "Base", contentPadding: 0, activeColorPrimary: AppCustomColor.primaryColor, inactiveColorPrimary: AppCustomColor.defaultGrayColor),
PersistentBottomNavBarItem( icon: BottomNavSvgIcons.baseSelected, inactiveIcon: BottomNavSvgIcons.baseUnselect, title: "Base", contentPadding: 0, activeColorPrimary: AppCustomColor.primaryColor, inactiveColorPrimary: AppCustomColor.defaultGrayColor),
PersistentTabView code:PersistentTabView( padding: const EdgeInsets.all(0), margin: const EdgeInsets.all(0), isVisible: true, context, controller: _controller, stateManagement: true, confineToSafeArea: true, navBarStyle: NavBarStyle.style15, resizeToAvoidBottomInset: false, items: _items, screens: _screens, animationSettings: const NavBarAnimationSettings( screenTransitionAnimation: ScreenTransitionAnimationSettings(screenTransitionAnimationType: ScreenTransitionAnimationType.slide, animateTabTransition: true)), onItemSelected: (index) { setState(() { _controller.index = index; }); }, );
PersistentTabView( padding: const EdgeInsets.all(0), margin: const EdgeInsets.all(0), isVisible: true, context, controller: _controller, stateManagement: true, confineToSafeArea: true, navBarStyle: NavBarStyle.style15, resizeToAvoidBottomInset: false, items: _items, screens: _screens, animationSettings: const NavBarAnimationSettings( screenTransitionAnimation: ScreenTransitionAnimationSettings(screenTransitionAnimationType: ScreenTransitionAnimationType.slide, animateTabTransition: true)), onItemSelected: (index) { setState(() { _controller.index = index; }); }, );
.
issue description: I use svg img to be
PersistentBottomNavBarItem
icon
arg, however I can't find any solution to modify the padding after usingtitle
argassets code :
SvgPicture.asset( 'assets/bottom_nav_icon/svg_icons/dashboard_24dp_unselected.svg', height: imgSizeHeight, width: imgSizeWidth, fit: BoxFit.contain, );
PersistentBottomNavBarItem code :
PersistentBottomNavBarItem( icon: BottomNavSvgIcons.baseSelected, inactiveIcon: BottomNavSvgIcons.baseUnselect, title: "Base", contentPadding: 0, activeColorPrimary: AppCustomColor.primaryColor, inactiveColorPrimary: AppCustomColor.defaultGrayColor),
PersistentTabView code:
PersistentTabView( padding: const EdgeInsets.all(0), margin: const EdgeInsets.all(0), isVisible: true, context, controller: _controller, stateManagement: true, confineToSafeArea: true, navBarStyle: NavBarStyle.style15, resizeToAvoidBottomInset: false, items: _items, screens: _screens, animationSettings: const NavBarAnimationSettings( screenTransitionAnimation: ScreenTransitionAnimationSettings(screenTransitionAnimationType: ScreenTransitionAnimationType.slide, animateTabTransition: true)), onItemSelected: (index) { setState(() { _controller.index = index; }); }, );