-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Simplified customizations on padding / itemPadding / corners for the main container / activeOpacity / shadows #82
base: master
Are you sure you want to change the base?
Conversation
elevationShadow customization padding and itemPadding customization use activeBackgroundColor instead of opacity modifier
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.
Thanks for the PR.
This looks good, we just need to fix some nits.
lib/bottom_navy_bar.dart
Outdated
this.corner = const BorderRadius.only( | ||
topLeft: Radius.circular(0), | ||
topRight: Radius.circular(0), | ||
), |
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.
Maybe just BorderRadius.zero
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.
no issue, good catch
final EdgeInsets padding; | ||
|
||
/// Defines padding for the item in a container, defaults to EdgeInsets.symmetric(vertical: 10, horizontal: 4) | ||
final EdgeInsets itemPadding; |
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.
Comments must end with a period!
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's easy, will do
padding: EdgeInsets.symmetric(horizontal: 4), | ||
padding: itemPadding, |
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.
We need to make sure to not break any UI with those changes. So far, removing the horizontal padding may break some existing users
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.
I'll change the defaults for itemPadding to be EdgeInsets.symmetric(horizontal: 4), that way it won't break anyone's apps
Please make sure to include some tests as well, to make sure those features does not break in the future. |
…ner param initialization
…s together in source code
with that it is easy to change per project needs: