video_trimmer
6.0.0, released 2 weeks ago by souvikbiswas.com
Trim videos in Flutter on Android, iOS, macOS, and the web
What it does
Provides a customizable video trimmer UI with playback controls, timeline scrubbing, and video or GIF export. Supports native implementation on Android, iOS, and macOS, and runs via Mediabunny on the web.
AI-written summary of version 6.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a user interface to let users select and trim a portion of a video.
- You need cross-platform video trimming supporting mobile, desktop (macOS), and the web.
Skip it when
- You only need a background video processing or transcoding pipeline without any UI.
- You need advanced non-linear video editing with multi-track timelines and filters.
Strengths
- Includes customizable trim viewers and playback controls.
- Runs natively on mobile and desktop without requiring external FFmpeg binaries.
- Supports web platform via WebCodecs.
Weaknesses
- Requires manual disposal of the Trimmer instance.
- Web support depends on browser capability (WebCodecs support).
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 5
Android minSdk must be at least 24. On macOS, sandboxed apps require the user-selected read-only entitlement. No special Info.plist keys are strictly needed unless using a separate file picker plugin.
final Trimmer _trimmer = Trimmer();
@override
void initState() {
super.initState();
_trimmer.loadVideo(videoPath: widget.videoPath);
}
@override
void dispose() {
_trimmer.dispose();
super.dispose();
}
// In build:
VideoViewer(trimmer: _trimmer)Alternatives
Packages that do the same job and could replace video_trimmer.
- video_player_android
Android implementation of the video_player plugin
88Compare - video_player_avfoundation
iOS and macOS implementation of the video_player plugin
86Compare - chewie
Video player widget with Material/Cupertino controls
92Compare - native_video_player
A Flutter widget to play videos on iOS and Android using a native implementation.
67Compare
Works with
Packages commonly used together with video_trimmer: ones it builds on, ones built on it, and its own family.
- webvideo_trimmer depends on itLightweight bindings for browser APIs via JS interop
- path_providervideo_trimmer depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- imagevideo_trimmer depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- video_playervideo_trimmer depends on itFlutter plugin for displaying inline video on Android, iOS, macOS, and web.