FlickVideoWithControls constructor

const FlickVideoWithControls({
  1. Key? key,
  2. Widget? controls,
  3. BoxFit videoFit = BoxFit.cover,
  4. Widget playerLoadingFallback = const Center(child: CircularProgressIndicator()),
  5. Widget playerErrorFallback = const Center(child: const Icon(Icons.error, color: Colors.white)),
  6. Color backgroundColor = Colors.black,
  7. IconThemeData iconThemeData = const IconThemeData(color: Colors.white, size: 20),
  8. TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 12),
  9. double aspectRatioWhenLoading = 16 / 9,
  10. bool willVideoPlayerControllerChange = true,
  11. 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);