mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
AppDrawer: Highlight the current selected route
This commit is contained in:
@ -119,7 +119,7 @@ class AppDrawer extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
},
|
||||
selected: currentRoute == null,
|
||||
selected: currentRoute == "/folders",
|
||||
),
|
||||
divider,
|
||||
_buildDrawerTile(
|
||||
@ -228,8 +228,6 @@ class AppDrawer extends StatelessWidget {
|
||||
@required Function onTap,
|
||||
bool selected = false,
|
||||
}) {
|
||||
selected = false; // Disable this as it looks very ugly in dark mode
|
||||
|
||||
var theme = Theme.of(context);
|
||||
var listTileTheme = ListTileTheme.of(context);
|
||||
var textStyle = theme.textTheme.body2.copyWith(
|
||||
|
Reference in New Issue
Block a user