Skip to content
pubscout

video_trimmer

6.0.0, released 2 weeks ago by souvikbiswas.com

Trim videos in Flutter on Android, iOS, macOS, and the web

$ flutter pub add video_trimmer
Source repository

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.

Works with

Packages commonly used together with video_trimmer: ones it builds on, ones built on it, and its own family.