codifyiq_video_viewer 1.0.0
codifyiq_video_viewer: ^1.0.0 copied to clipboard
A video player with play, scrub and mute controls, a full-screen viewer route, and a thumbnail tile, powered by video_player.
codifyiq_video_viewer example #
import 'package:codifyiq_video_viewer/codifyiq_video_viewer.dart';
import 'package:material_ui/material_ui.dart';
Widget buildClip(BuildContext context) {
final source = VideoSource.uri(Uri.parse('https://example.com/clip.mp4'));
return VideoThumbnailTile(
thumbnail: const NetworkImage('https://example.com/clip.jpg'),
duration: const Duration(seconds: 42),
onTap: () => Navigator.of(context).push(
MaterialPageRoute<void>(
fullscreenDialog: true,
builder: (_) => VideoViewerScreen(source: source, title: 'clip.mp4'),
),
),
);
}
HTTP headers on
VideoSource.uriare ignored on Flutter web, andVideoSource.fileis unsupported there.
A runnable catalog demonstrating every CodifyIQ component lives in the
example/ app at the repository root.