Skip to content

Commit

Permalink
Fix issue #309 Toolbar icons are not aligned.
Browse files Browse the repository at this point in the history
  • Loading branch information
j-fbriere committed May 13, 2024
1 parent 6f85aa9 commit f83961b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/46.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
* Fix the feature #129 Let tweet cards be True Dark as well (thanks @TheHJC).
* The released apk files also include apk files built for older Android KitKat (version 4.4.x).
* Fix issue #309 Toolbar icons are not aligned.
2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/default.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
* Fix the feature #129 Let tweet cards be True Dark as well (thanks @TheHJC).
* The released apk files also include apk files built for older Android KitKat (version 4.4.x).
* Fix issue #309 Toolbar icons are not aligned.
7 changes: 6 additions & 1 deletion lib/home/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,12 @@ class ScaffoldWithBottomNavigationState extends State<ScaffoldWithBottomNavigati
: NavigationDestinationLabelBehavior.alwaysHide,
height: PrefService.of(context).get(optionHomeShowTabLabels) ? 70 : 40,
destinations: [
..._pages.map((e) => NavigationDestination(selectedIcon: Icon(e.icon, size: 22, fill: 1), icon: Icon(e.icon, size: 22), label: e.titleBuilder(context)))
..._pages.map((e) => DefaultTextStyle.merge(
style: NavigationBarTheme.of(context).labelTextStyle?.resolve(e.id == _pages[_selectedIndex].id ? <MaterialState>{MaterialState.selected} : <MaterialState>{}),
overflow: TextOverflow.clip,
maxLines: 1,
child: NavigationDestination(selectedIcon: Icon(e.icon, size: 22, fill: 1), icon: Icon(e.icon, size: 22), label: e.titleBuilder(context))
))
],
onDestinationSelected: (int value) async {
if (_children[value] is FeedScreen && widget.feedKey != null && widget.feedKey!.currentState != null) {
Expand Down

0 comments on commit f83961b

Please sign in to comment.