mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-30 13:19:44 +02:00
fix(concerts): follow the selected light or dark theme
This commit is contained in:
1 parent
79aa013795
commit
6b72aed3f6
1 file changed
+2
-6
@@ -36,20 +36,16 @@ class _ArtistConcertsScreenState extends State<ArtistConcertsScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (context.isMornye) {
|
||||
final theme = MornyeTheme.build(Brightness.dark);
|
||||
final theme = Theme.of(context);
|
||||
final route = ModalRoute.of(context);
|
||||
if (route != null) {
|
||||
ShellNavigationService.setChromeBrightness(
|
||||
owner: this,
|
||||
route: route,
|
||||
brightness: Brightness.dark,
|
||||
brightness: theme.brightness,
|
||||
surface: theme.colorScheme.surface,
|
||||
);
|
||||
}
|
||||
return Theme(
|
||||
data: theme,
|
||||
child: Builder(builder: _buildPage),
|
||||
);
|
||||
}
|
||||
return _buildPage(context);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user