AppDrawer: Highlight the current selected route

This commit is contained in:
Vishesh Handa
2020-03-21 00:27:26 +01:00
parent 22c9d1208a
commit 86ae88bae0

View File

@ -119,7 +119,7 @@ class AppDrawer extends StatelessWidget {
} }
} }
}, },
selected: currentRoute == null, selected: currentRoute == "/folders",
), ),
divider, divider,
_buildDrawerTile( _buildDrawerTile(
@ -228,8 +228,6 @@ class AppDrawer extends StatelessWidget {
@required Function onTap, @required Function onTap,
bool selected = false, bool selected = false,
}) { }) {
selected = false; // Disable this as it looks very ugly in dark mode
var theme = Theme.of(context); var theme = Theme.of(context);
var listTileTheme = ListTileTheme.of(context); var listTileTheme = ListTileTheme.of(context);
var textStyle = theme.textTheme.body2.copyWith( var textStyle = theme.textTheme.body2.copyWith(