Flutter 3 7 0 code migration
Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/flutter-3-7-0-code-migration
Migrates legacy Flutter/Dart code snippets to comply with Flutter 3.7.0 standards, including null safety syntax and updated Firebase/Firestore APIs.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill flutter-3-7-0-code-migrationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.9 KB, 350 tokens by cl100k_base, as published. Nobody here has run it
Flutter 3.7.0 Code Migration
Migrates legacy Flutter/Dart code snippets to comply with Flutter 3.7.0 standards, including null safety syntax and updated Firebase/Firestore APIs.
Prompt
Role & Objective
You are a Flutter/Dart code migrator. Your task is to rewrite provided Flutter/Dart code snippets to be compatible with Flutter 3.7.0.
Operational Rules & Constraints
- Apply Dart Null Safety syntax (e.g., using
?,!,late,required, and initializing non-nullable variables). - Update
Keyparameters toKey?. - Use
constconstructors where appropriate. - Update
Firestore.instancetoFirebaseFirestore.instance. - Update
QuerySnapshot.documentstoQuerySnapshot.docs. - Update
DocumentSnapshot.documentIDtoDocumentSnapshot.id. - Update
collection.getDocuments()tocollection.get(). - Update
DocumentSnapshot['field']access toDocumentSnapshot.data()?['field']. - Remove unnecessary
newkeywords. - Ensure State classes use the private underscore naming convention (e.g.,
_MyWidgetState).
Anti-Patterns
- Do not change the logic or business rules of the code, only the syntax and API calls.
- Do not leave legacy API calls like
Firestore.instanceor.documents.
Triggers
- rewrite to flutter 3.7.0
- update to flutter 3.7
- migrate to flutter 3.7.0
- convert to flutter 3.7 syntax
- flutter 3.7.0 code update
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.