FlickVideoWithControls constructor
const
FlickVideoWithControls({
- Key? key,
- Widget? controls,
- BoxFit videoFit = BoxFit.cover,
- Widget playerLoadingFallback = const Center(child: CircularProgressIndicator()),
- Widget playerErrorFallback = const Center(child: const Icon(Icons.error, color: Colors.white)),
- Color backgroundColor = Colors.black,
- IconThemeData iconThemeData = const IconThemeData(color: Colors.white, size: 20),
- TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 12),
- double aspectRatioWhenLoading = 16 / 9,
- bool willVideoPlayerControllerChange = true,
- TextStyle closedCaptionTextStyle = const TextStyle(color: Colors.white, fontSize: 12),
Implementation
const FlickVideoWithControls({
Key? key,
this.controls,
this.videoFit = BoxFit.cover,
this.playerLoadingFallback = const Center(
child: CircularProgressIndicator(),
),
this.playerErrorFallback = const Center(
child: const Icon(
Icons.error,
color: Colors.white,
),
),
this.backgroundColor = Colors.black,
this.iconThemeData = const IconThemeData(
color: Colors.white,
size: 20,
),
this.textStyle = const TextStyle(
color: Colors.white,
fontSize: 12,
),
this.aspectRatioWhenLoading = 16 / 9,
this.willVideoPlayerControllerChange = true,
this.closedCaptionTextStyle = const TextStyle(
color: Colors.white,
fontSize: 12,
),
}) : super(key: key);