Skip to content

Commit

Permalink
add: [BUG] NavigationBar isn't True Black #15
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHCJ committed Apr 17, 2024
1 parent bc20234 commit 0c41a7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/home/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ class _ScaffoldWithBottomNavigationState extends State<ScaffoldWithBottomNavigat
@override
Widget build(BuildContext context) {
final showNavigationLabels = PrefService.of(context).get(optionShowNavigationLabels);
final trueDark = PrefService.of(context).get(optionThemeTrueBlack);
final _disableAnimations = PrefService.of(context).get(optionDisableAnimations);

return Scaffold(
Expand All @@ -228,6 +229,7 @@ class _ScaffoldWithBottomNavigationState extends State<ScaffoldWithBottomNavigat
),
bottomNavigationBar: NavigationBar(
selectedIndex: currentPage,
surfaceTintColor: Theme.of(context).brightness == Brightness.dark && trueDark == true ? Colors.black : null,
height: !showNavigationLabels ? 50 : 70,
labelBehavior: showNavigationLabels
? NavigationDestinationLabelBehavior.alwaysShow
Expand Down

0 comments on commit 0c41a7f

Please # to comment.