Skip to content

Commit

Permalink
Fixed icon not center aligning when no title given
Browse files Browse the repository at this point in the history
  • Loading branch information
uttusharma committed Mar 27, 2021
1 parent 4c6bff6 commit 5eac6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/custome_navigation_bar.dart
Expand Up @@ -232,7 +232,7 @@ class _CustomNavigationBarState extends State<CustomNavigationBar>
if (widget.items[index].title == null && widget.isFloating) {
return Container();
} else {
return widget.items[index].title ?? Text('');
return widget.items[index].title ?? Container();
}
} else {
//selected
Expand Down

0 comments on commit 5eac6af

Please sign in to comment.