Skip to content
pubscout

video_editor_2

3.1.1, released 2 years ago by an unverified publisher

A Flutter video editor widget package supporting crop, trim, rotation, and cover selection.

$ flutter pub add video_editor_2
Source repository

What it does

Provides a customizable UI and a controller to edit videos in Flutter. It allows users to trim video durations, crop frames, rotate views, and pick cover images, generating configurations that can be exported using libraries like FFmpeg.

AI-written summary of version 3.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to build a video editing screen with custom UI in Flutter.
  • Your app requires video trimming, cropping, rotation, and thumbnail selection capabilities.

Skip it when

  • You only need basic video playback without editing features.
  • You require an out-of-the-box native export pipeline bundled directly in the package without configuring external FFmpeg packages.

Strengths

  • Highly flexible and customizable UI components for editing.
  • Supports crop, trim, rotation, and cover selection out of the box.
  • Platform-agnostic export configurations supporting platforms like web via FFmpeg.

Weaknesses

  • Exporting requires manual integration with external libraries like FFmpeg.
  • Has breaking changes in recent major versions regarding export methods.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
4

Requires adding the dependency to pubspec.yaml and integrating a separate FFmpeg package (such as ffmpeg_kit_flutter) if video/cover file exporting is needed.

final VideoEditorController _controller = VideoEditorController.file(
  XFile('/path/to/video.mp4'),
  minDuration: const Duration(seconds: 1),
  maxDuration: const Duration(seconds: 10),
);

@override
void initState() {
  super.initState();
  _controller.initialize().then((_) => setState(() {}));
}

@override
void dispose() {
  _controller.dispose();
  super.dispose();
}

Alternatives

Packages that do the same job and could replace video_editor_2.

Works with

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