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

Add support to override item width and item selected width #75

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

Conversation

davidpatrickcoleman
Copy link

Overflow error appears if 5 tabs are displayed on smaller screen resolutions such as iPhone SE
Simulator Screen Shot - iPhone SE - 2021-01-08 at 14 57 09

Add ability to change the hardcoded item width (default 50) and item (default 130) in order to accommodate smaller screens (for example, reduce selected width to 110 and default width to 40).

@codecov-io
Copy link

Codecov Report

Merging #75 (84baaf9) into master (08d0b31) will decrease coverage by 1.43%.
The diff coverage is 57.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #75      +/-   ##
==========================================
- Coverage   79.74%   78.31%   -1.44%     
==========================================
  Files           1        1              
  Lines          79       83       +4     
==========================================
+ Hits           63       65       +2     
- Misses         16       18       +2     
Impacted Files Coverage Δ
lib/bottom_navy_bar.dart 78.31% <57.14%> (-1.44%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 08d0b31...84baaf9. Read the comment docs.

Comment on lines +16 to +17
this.itemSelectedWidth = 130,
this.itemWidth = 50,
Copy link
Owner

Choose a reason for hiding this comment

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

Hi @davidpatrickcoleman
Thanks for this amazing contibution. Since this is a new feature could you please add tests to prevent this feature to break in the future?
Thank you

Sorry for the later feedback!

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