Updated example to match dark themes
This commit is contained in:
parent
2ad75d4f6f
commit
fd04725260
|
@ -16,10 +16,8 @@ class MyApp extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Miniplayer Demo',
|
||||
theme: ThemeData(
|
||||
primaryColor: Colors.grey[50],
|
||||
visualDensity: VisualDensity.adaptivePlatformDensity,
|
||||
),
|
||||
theme: ThemeData.light(),
|
||||
darkTheme: ThemeData.dark(),
|
||||
home: MyHomePage(),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -160,7 +160,12 @@ class DetailedPlayer extends StatelessWidget {
|
|||
.textTheme
|
||||
.bodyText2!
|
||||
.copyWith(
|
||||
color: Colors.black.withOpacity(0.55)),
|
||||
color: Theme.of(context)
|
||||
.textTheme
|
||||
.bodyText2!
|
||||
.color!
|
||||
.withOpacity(0.55),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue