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) {
|
Widget build(BuildContext context) {
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: 'Miniplayer Demo',
|
title: 'Miniplayer Demo',
|
||||||
theme: ThemeData(
|
theme: ThemeData.light(),
|
||||||
primaryColor: Colors.grey[50],
|
darkTheme: ThemeData.dark(),
|
||||||
visualDensity: VisualDensity.adaptivePlatformDensity,
|
|
||||||
),
|
|
||||||
home: MyHomePage(),
|
home: MyHomePage(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,7 +160,12 @@ class DetailedPlayer extends StatelessWidget {
|
||||||
.textTheme
|
.textTheme
|
||||||
.bodyText2!
|
.bodyText2!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: Colors.black.withOpacity(0.55)),
|
color: Theme.of(context)
|
||||||
|
.textTheme
|
||||||
|
.bodyText2!
|
||||||
|
.color!
|
||||||
|
.withOpacity(0.55),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue