From fd0472526021ea665bfa2b6ad25102cdac463f0b Mon Sep 17 00:00:00 2001 From: David Peters <8vsxdxd@gmail.com> Date: Wed, 29 Sep 2021 11:44:51 +0200 Subject: [PATCH] Updated example to match dark themes --- example/lib/main.dart | 6 ++---- example/lib/widgets/player.dart | 7 ++++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 1002d3b..617c378 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -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(), ); } diff --git a/example/lib/widgets/player.dart b/example/lib/widgets/player.dart index 287bbf8..c5f4760 100644 --- a/example/lib/widgets/player.dart +++ b/example/lib/widgets/player.dart @@ -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), + ), ), ], ),