Skip to content

Commit

Permalink
Remove label padding in simple style
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3rndt committed Mar 27, 2023
1 parent 72803c1 commit 00a3550
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Remove label padding in simple style

## [4.2.7] - 2022-11-13
### Fixed
- Scroll to top on iOS (#34 via #72)
Expand Down Expand Up @@ -446,6 +450,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Includes platform specific behavior as an option (specify it in the two navigator functions).
- Based on flutter's Cupertino(iOS) bottom navigation bar.

[Unreleased]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/4.2.7...HEAD
[4.2.7]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/4.2.6...4.2.7
[4.2.6]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/4.2.5...4.2.6
[4.2.5]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/4.2.4...4.2.5
Expand Down
47 changes: 21 additions & 26 deletions lib/nav-bar-styles/simple-bottom-nav-bar.widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,27 @@ class BottomNavSimple extends StatelessWidget {
),
item.title == null
? SizedBox.shrink()
: Padding(
padding: const EdgeInsets.only(top: 15.0),
child: Material(
type: MaterialType.transparency,
child: FittedBox(
child: Text(
item.title!,
style: item.textStyle != null
? (item.textStyle!.apply(
color: isSelected
? (item.activeColorSecondary ==
null
? item.activeColorPrimary
: item.activeColorSecondary)
: item.inactiveColorPrimary))
: TextStyle(
color: isSelected
? (item.activeColorSecondary ==
null
? item.activeColorPrimary
: item.activeColorSecondary)
: item.inactiveColorPrimary,
fontWeight: FontWeight.w400,
fontSize: 12.0),
)),
),
: Material(
type: MaterialType.transparency,
child: FittedBox(
child: Text(
item.title!,
style: item.textStyle != null
? (item.textStyle!.apply(
color: isSelected
? (item.activeColorSecondary == null
? item.activeColorPrimary
: item.activeColorSecondary)
: item.inactiveColorPrimary))
: TextStyle(
color: isSelected
? (item.activeColorSecondary == null
? item.activeColorPrimary
: item.activeColorSecondary)
: item.inactiveColorPrimary,
fontWeight: FontWeight.w400,
fontSize: 12.0),
)),
)
],
)
Expand Down

0 comments on commit 00a3550

Please sign in to comment.