I'm developing a Flutter application using the video_editor package (version ^3.0.0) for video editing. However, when I send a video to the playback screen, it displays with an incorrect aspect ratio—it appears zoomed in or otherwise distorted—compared to other video players which render it correctly.
Below is a simplified snippet of my code that checks if the video editor controller is initialized and then shows the video preview:
The image of issue In the other video player
if (provider.isReinitializing ||
provider.videoEditorController == null ||
!(provider.videoEditorController?.initialized ?? false)) {
return const Center(
child: CircularProgressIndicator(),
);
}
Widget videoPreview = CropGridViewer.preview(
controller: provider.videoEditorController!,
);