Maintenance skill for Flutter projects using FVM. Handles clean builds, iOS/Android specific fixes, asset generation, and release protocols.
Always Start Here:
.fvmrc (e.g., 3.35.5) and ensure match with fvm flutter --version.fvm flutter doctor to check environment health.Trigger: Build failures, weird UI glitches, or “API code not generated”.
fvm flutter cleanfvm flutter pub getfvm flutter pub run build_runner build --delete-conflicting-outputs
json_serializable and retrofit code.ios/ folder)Trigger: “CocoaPods not found” or “Linker command failed”.
cd iosbundle install (Ensure Fastlane and Pods dependencies are aligned).rm -rf Pods Podfile.lockbundle exec pod install --repo-update (Preferred over raw pod install).cd ..android/ folder)Trigger: Gradle errors or SDK version mismatches.
android/gradle/wrapper/gradle-wrapper.properties distribution URL../gradlew clean inside android/.Trigger: Updates to pubspec.yaml assets or configuration.
fvm dart run flutter_launcher_iconsfvm dart run flutter_native_splash:createPrecautions: Ensure key.properties exists (Android) and Certificates are installed (iOS).
Script: ./ship-android.sh
android/, runs fastlane release.Script: ./ship-ios.sh
ios/, runs fastlane deploy.Scenario: pub get fails.
fvm flutter pub upgrade <package_name> to update transitive dependencies.pubspec.lock for changes.