video_editor_2 3.1.1 video_editor_2: ^3.1.1 copied to clipboard
A flutter package for editing video with fully customizable UI. Supports crop, trim, rotation and cover selection.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add video_editor_2
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
video_editor_2: ^3.1.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:video_editor_2/domain/bloc/controller.dart';
import 'package:video_editor_2/domain/entities/cover_data.dart';
import 'package:video_editor_2/domain/entities/cover_style.dart';
import 'package:video_editor_2/domain/entities/crop_style.dart';
import 'package:video_editor_2/domain/entities/ffmpeg_config.dart';
import 'package:video_editor_2/domain/entities/file_format.dart';
import 'package:video_editor_2/domain/entities/transform_data.dart';
import 'package:video_editor_2/domain/entities/trim_style.dart';
import 'package:video_editor_2/domain/helpers.dart';
import 'package:video_editor_2/domain/thumbnails.dart';
import 'package:video_editor_2/ui/cover/cover_selection.dart';
import 'package:video_editor_2/ui/cover/cover_viewer.dart';
import 'package:video_editor_2/ui/crop/crop_grid.dart';
import 'package:video_editor_2/ui/crop/crop_grid_painter.dart';
import 'package:video_editor_2/ui/crop/crop_mixin.dart';
import 'package:video_editor_2/ui/image_viewer.dart';
import 'package:video_editor_2/ui/transform.dart';
import 'package:video_editor_2/ui/trim/thumbnail_slider.dart';
import 'package:video_editor_2/ui/trim/trim_slider.dart';
import 'package:video_editor_2/ui/trim/trim_slider_painter.dart';
import 'package:video_editor_2/ui/trim/trim_timeline.dart';
import 'package:video_editor_2/ui/video_viewer.dart';
import 'package:video_editor_2/video_editor.dart';