Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to modify padding between text and assets img in Item? #369

Open
Tommy-Wang0602 opened this issue Aug 2, 2024 · 0 comments
Open

How to modify padding between text and assets img in Item? #369

Tommy-Wang0602 opened this issue Aug 2, 2024 · 0 comments

Comments

@Tommy-Wang0602
Copy link

Tommy-Wang0602 commented Aug 2, 2024

截圖 2024-08-02 晚上7 52 23.

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

assets 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; }); }, );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant