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

Added shadows, rounded corners and more customization options. #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pawelpetruch
Copy link

@pawelpetruch pawelpetruch commented Aug 22, 2020

Allows to add a custom shadow to the bar, opacity to the inactive icons, rounded corners and change the height of the tabs.

image

@@ -121,7 +158,7 @@ class _ItemWidget extends StatelessWidget {
curve: curve,
decoration: BoxDecoration(
color:
isSelected ? item.activeColor.withOpacity(0.2) : backgroundColor,
isSelected ? item.activeColor.withOpacity(0.1) : backgroundColor,
Copy link

Choose a reason for hiding this comment

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

It's better to have activeOpacity as constructor option.

Copy link
Owner

Choose a reason for hiding this comment

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

Hi @pawelpetruch
I agree with @omidraha it will be better to have this as constructor argument

Copy link
Author

Choose a reason for hiding this comment

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

Sure, I'm moving it to the constructor.

color: Colors.black12,
blurRadius: 2,
BoxShadow(
color: Colors.black,
Copy link

Choose a reason for hiding this comment

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

It's better to have BoxShadow.color or ‍‍‍‍‍BoxShadow as constructor option.

Copy link
Owner

Choose a reason for hiding this comment

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

Right, lets move this into constructor

Copy link
Author

Choose a reason for hiding this comment

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

I will move the color to the constructor

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.

Thank for this PR.

Please see the comments and update the PR for me to take another look.
Thank you

@pawelpetruch
Copy link
Author

Changes as requested.
@pedromassango @omidraha

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.

Since this is a new feature could you please add tests to prevent this feature to break in the future?
Thank you

Comment on lines +194 to +196
padding: EdgeInsets.symmetric(
vertical: verticalItemPadding,
horizontal: horizontalItemPadding),
Copy link
Owner

Choose a reason for hiding this comment

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

Hi @pawelpetruch
Thanks for this amazing contibution. Those two proerties could just be a Padding object so that users will have the hability to change a veri specific padding (left only, right only, top only, etc..)

Thank you

Sorry for the later feedback!

@jansvanda
Copy link

Hi all! Can you please implement the feature now?

@pedromassango
Copy link
Owner

@jansvanda this PR needs requires some changes to be merged ( see #67 (comment)).

Xazin added a commit to Xazin/bottom_navy_bar that referenced this pull request Dec 10, 2022
This is the re-implementation of most of the work done on pedromassango#67 - however with a little bit missing and some optimization to the options.
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.

None yet

4 participants