Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
VideoPlayer
const VideoPlayer({
super.key,
required this.controller,
this.title,
this.poster,
this.aspectRatio,
this.fit = BoxFit.contain,
this.borderRadius = 24,
this.showControls = true,
this.allowFullscreen = true,
this.controlsHideDelay = const Duration(seconds: 2),
this.showSeekButtons = false,
this.showSeekPreview = false,
this.onScrubbingChanged,
this.ambientGlow = false,
this.orientationsAfterFullscreen = const [],
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
controller | backend.VideoPlayerController? | Yes | — |
title | String? | No | null |
poster | Widget? | No | null |
aspectRatio | double? | No | null |
fit | BoxFit | No | BoxFit.contain |
borderRadius | double | No | 24 |
showControls | bool | No | true |
allowFullscreen | bool | No | true |
controlsHideDelay | Duration | No | const Duration(seconds: 2) |
showSeekButtons | bool | No | false |
showSeekPreview | bool | No | false |
onScrubbingChanged | ValueChanged<bool>? | No | null |
ambientGlow | bool | No | false |
orientationsAfterFullscreen | List<DeviceOrientation> | No | const [] |
VideoPlayer.network
const VideoPlayer.network(
this.url, {
super.key,
this.title,
this.poster,
this.aspectRatio,
this.fit = BoxFit.contain,
this.borderRadius = 24,
this.showControls = true,
this.allowFullscreen = true,
this.controlsHideDelay = const Duration(seconds: 2),
this.showSeekButtons = false,
this.showSeekPreview = false,
this.onScrubbingChanged,
this.ambientGlow = false,
this.orientationsAfterFullscreen = const [],
this.autoplay = false,
this.looping = false,
this.muted = false,
this.httpHeaders = const {},
});VideoPlayer.asset
const VideoPlayer.asset(
this.asset, {
super.key,
this.package,
this.title,
this.poster,
this.aspectRatio,
this.fit = BoxFit.contain,
this.borderRadius = 24,
this.showControls = true,
this.allowFullscreen = true,
this.controlsHideDelay = const Duration(seconds: 2),
this.showSeekButtons = false,
this.showSeekPreview = false,
this.onScrubbingChanged,
this.ambientGlow = false,
this.orientationsAfterFullscreen = const [],
this.autoplay = false,
this.looping = false,
this.muted = false,
});Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/media/video_player/video_player.dart
This reference is generated from the VideoPlayer declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

