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), + ), ), ], ),