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

Feature, solid background #83 #84

Closed
wants to merge 4 commits into from
Closed

Feature, solid background #83 #84

wants to merge 4 commits into from

Conversation

Mohdx
Copy link

@Mohdx Mohdx commented Jun 21, 2021

Fixes #83

Copy link
Owner

@pedromassango pedromassango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for this PR.

Left some comments that need to be addressed before lading this.

Comment on lines +25 to +26
}) : assert(items.length >= 2 && items.length <= 5),
super(key: key);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary changes

@@ -217,4 +223,7 @@ class BottomNavyBarItem {
/// This will take effect only if [title] it a [Text] widget.
final TextAlign? textAlign;

/// The [background] solid color defined when this item is selected. Defaults
/// to [false].
final bool solidBackground;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe change it to: If [true], use the solid color for the background of this item. Defaults to [false].

Comment on lines +162 to +164
? item.solidBackground
? Colors.white
: item.activeColor.withOpacity(1)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused, the property is called solidBackground but it changes the color of the icon as well. You can either rename the property name to something like useSolidColors or revert this change.

Comment on lines +177 to +179
color: item.solidBackground
? Colors.white
: item.activeColor,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

This pull request was closed.
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

Successfully merging this pull request may close these issues.

Feature, solid background
2 participants