mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +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,
|
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(
|
||||||
|
Reference in New Issue
Block a user