PipFlutterPlayerControlsConfiguration.theme constructor

PipFlutterPlayerControlsConfiguration.theme(
  1. ThemeData theme
)

Setup PipFlutterPlayerControlsConfiguration based on Theme options.

Implementation

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