Run the following commands from your terminal:
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
flutter run