Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 931 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 931 Bytes

Custom Video Editor

Video editor designed for trimming and cropping videos.

Features

  • Crop

  • Trim

Custom video editor in display


How to use this package

In order to start editing a video, copy the code below and modify accordingly.

Future<void> editVideo(String videoLink) async {
    final updatedRes = await Navigator.push(context, MaterialPageRoute(builder: (context) {
      return EditVideoComponent(videoLink: videoLink);
    }));
    if(updatedRes != null && updatedRes is FinishedVideoData){
      VideoPlayerController getController = VideoPlayerController.file(File(updatedRes.url));
      await getController.initialize();
      controller = getController;
      width = updatedRes.size.width;
      height = updatedRes.size.height;
    }
}