AdaptiveVideoControls function
Video controls based on the running platform.
Implementation
Widget AdaptiveVideoControls(VideoState state) {
switch (Theme.of(state.context).platform) {
case TargetPlatform.android:
case TargetPlatform.iOS:
return MaterialVideoControls(state);
case TargetPlatform.macOS:
case TargetPlatform.windows:
case TargetPlatform.linux:
return MaterialDesktopVideoControls(state);
default:
return NoVideoControls(state);
}
}