From f1b44f609bd54c5014753ccee2b9c96766965920 Mon Sep 17 00:00:00 2001 From: ChinmayaGit Date: Tue, 28 May 2024 03:16:42 +0530 Subject: [PATCH] Fixed:bodyText1 and TextTheme --- .../configuration/better_player_controls_configuration.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/configuration/better_player_controls_configuration.dart b/lib/src/configuration/better_player_controls_configuration.dart index d40bcf5e5..77fd8eacc 100644 --- a/lib/src/configuration/better_player_controls_configuration.dart +++ b/lib/src/configuration/better_player_controls_configuration.dart @@ -240,8 +240,8 @@ class BetterPlayerControlsConfiguration { ///Setup BetterPlayerControlsConfiguration based on Theme options. factory BetterPlayerControlsConfiguration.theme(ThemeData theme) { return BetterPlayerControlsConfiguration( - textColor: theme.textTheme.bodyText1?.color ?? Colors.white, - iconsColor: theme.textTheme.button?.color ?? Colors.white, + textColor: theme.textTheme.bodyLarge?.color ?? Colors.white, + iconsColor: theme.textTheme.labelLarge?.color ?? Colors.white, ); } }