BetterPlayerControlsConfiguration.theme constructor

BetterPlayerControlsConfiguration.theme(
  1. ThemeData theme
)

Setup BetterPlayerControlsConfiguration based on Theme options.

Implementation

factory BetterPlayerControlsConfiguration.theme(ThemeData theme) {
  return BetterPlayerControlsConfiguration(
    textColor: theme.textTheme.bodyText1?.color ?? Colors.white,
    iconsColor: theme.textTheme.button?.color ?? Colors.white,
  );
}