Skip to content

Commit

Permalink
NarrowLayout: fix item widget if selected (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier authored Jun 14, 2022
1 parent 08e6f41 commit f33a5d5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/src/yaru_narrow_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@ class _YaruNarrowLayoutState extends State<YaruNarrowLayout> {
items: widget.pageItems
.map(
(pageItem) => BottomNavigationBarItem(
icon: pageItem.itemWidget != null
? pageItem.itemWidget!
: Icon(pageItem.iconData),
activeIcon: pageItem.selectedItemWidget != null
? pageItem.selectedItemWidget!
: (pageItem.selectedIconData != null
icon: pageItem.itemWidget ?? Icon(pageItem.iconData),
activeIcon: pageItem.selectedItemWidget ??
pageItem.itemWidget ??
(pageItem.selectedIconData != null
? Icon(pageItem.selectedIconData)
: Icon(pageItem.iconData)),
label: convertWidgetToString(
Expand Down

0 comments on commit f33a5d5

Please sign in to comment.