-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Minimized the space between the icon and the title #112
Conversation
lib/bottom_navy_bar.dart
Outdated
@@ -162,23 +162,22 @@ class _ItemWidget extends StatelessWidget { | |||
container: true, | |||
selected: isSelected, | |||
child: AnimatedContainer( | |||
width: isSelected ? 130 : 50, | |||
width: isSelected ? 130 : 50, // Limit the width here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason to add this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @Sanskar2807 thanks a lot for your PR.
I have left some comments.
lib/bottom_navy_bar.dart
Outdated
borderRadius: BorderRadius.circular(itemCornerRadius), | ||
), | ||
child: SingleChildScrollView( | ||
scrollDirection: Axis.horizontal, | ||
physics: NeverScrollableScrollPhysics(), | ||
child: Container( | ||
width: isSelected ? 130 : 50, | ||
width: isSelected ? 130 : 50, // Limit the width here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my previous comment
example/lib/main.dart
Outdated
@@ -71,7 +71,7 @@ class _MyHomePageState extends State<MyHomePage> { | |||
BottomNavyBarItem( | |||
icon: Icon(Icons.message), | |||
title: Text( | |||
'Messages test for mes teset test test ', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That example is on purpose!
All checks have failed, do you mind take a look? |
'Messages test for mes teset test test '' Miniimized the gap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi again @Sanskar2807.
Thanks for the hard work you are putting on this.
I would stay with the current behavior, IMHO.
Use usually expect menu items to have only one word, or at least two.
Fixed #111
Demo screenshot