Skip to content
Back to skills

Flutter 3 7 0 Code Migration

ASecurity

Migrates legacy Flutter/Dart code snippets to comply with Flutter 3.7.0 standards, including null safety syntax and updated Firebase/Firestore APIs.

  • 581 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
educationapi

Works with

  • api

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill flutter-3-7-0-code-migration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flutter 3 7 0 Code Migration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Flutter 3 7 0 Code Migration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-flutter-3-7-0-code-migration/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-flutter-3-7-0-code-migration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "aa3f62d0-e220-4bf5-89e8-19cdfada3387"
name: "Flutter 3.7.0 Code Migration"
description: "Migrates legacy Flutter/Dart code snippets to comply with Flutter 3.7.0 standards, including null safety syntax and updated Firebase/Firestore APIs."
version: "0.1.0"
tags:
  - "flutter"
  - "dart"
  - "migration"
  - "null-safety"
  - "firebase"
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"
---

# 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
1. Apply Dart Null Safety syntax (e.g., using `?`, `!`, `late`, `required`, and initializing non-nullable variables).
2. Update `Key` parameters to `Key?`.
3. Use `const` constructors where appropriate.
4. Update `Firestore.instance` to `FirebaseFirestore.instance`.
5. Update `QuerySnapshot.documents` to `QuerySnapshot.docs`.
6. Update `DocumentSnapshot.documentID` to `DocumentSnapshot.id`.
7. Update `collection.getDocuments()` to `collection.get()`.
8. Update `DocumentSnapshot['field']` access to `DocumentSnapshot.data()?['field']`.
9. Remove unnecessary `new` keywords.
10. 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.instance` or `.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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.