Set to true when the rotation is different to 0 The bottom right position of the crop area (between 0.0 and 1.0) The top left position of the crop area (between 0.0 and 1.0) The minDuration possible for the trimmed area ![]() The maxDuration possible for the trimmed area Set to true when startTrim or endTrim is changing Set to true when the trimmed values are not the default video duration The duration of the selected trimmed area Return the selected cover with the controller parameters in onCompleted function Return the generated video with the controller parameters in onCompleted function Return the metadata of the video file in onCompleted function Update the controller trim min and max values Update the controller crop min and max values Update the aspect ratio + update the crop area to the center of the video size Update the aspect ratio to the current crop area ratio Rotate the video by 90 degrees in the direction provided Init the controller parameters, the video, the trim and the cover, call cropAspectRatio MaxDuration: const Duration(seconds: initState(), // show the exported GIFįor more details check out the example. □ Usage # final VideoEditorController _controller = VideoEditorController.file( □ Screenshots # Example app running on an Iphone 11 pro If you're planing to target older devices, check about the LTS release. Those Android API level and iOS deployment target are required to uses this package. Since v1.3.0, video_editor uses ffmpeg_kit_flutter main release which supports the latest features. Import 'package:video_editor/video_editor.dart' Run flutter pub add video_editor, or add video_editor to pubspec.yaml file manually. ![]() □ Installation #įollowing steps will help you add this library as a dependency in your flutter project. This library is written in Dart only but uses external packages such as ffmpeg_kit_flutter and video_thumbnail, which makes it available only on iOS and Android plaforms for now. The exportation is made using ffmpeg_kit_flutter library. A video editor that allows to edit (trim, crop, rotate and scale) and choose a cover with a very flexible UI design.
0 Comments
Leave a Reply. |