Update your video_compress: ^3.1.2 to ^3.1.3 in pubspec.yaml . Then 1. flutter clean 2. flutter pub get