Try to run this command:
flutter pub get flutter pub run build_runner build --delete-conflicting-outputs