yii.
← Writing
Flutter 技術 · · 6 min read

Flutter 3.38 & Dart 3.10 Update Overview

AI-driven and cross-platform enhanced, laying the foundation for next-generation applications.

Please read the official information for details:

Announcing Flutter 3.38 & Dart 3.10: Building the future of appsHi, Flutter community! My name is Emma Twersky, and I am unbelievably excited to be your new lead for Flutter and Dart…blog.flutter.dev

What’s new in Flutter 3.38Write less, see more, build fasterblog.flutter.dev

Announcing Dart 3.10Today, we’re excited to announce the release of Dart 3.10!blog.dart.dev

What’s newA list of what’s new on dart.dev and related sites.dart.dev

Breaking changes and migration guidesA collection of notices and migration guides for breaking changes in Flutter.docs.flutter.dev


1. Key Updates / Focuses#

Flutter 3.38 & Dart 3.10 Stable Release#

The Flutter team continues its vision of “Stable productivity + AI-driven development.” This release brings major improvements in language design, tooling, platform support, and AI integration.


Dart 3.10 — Enhanced Productivity and Syntax Experience#

Dot Shorthands#

When the context type is clear, you can omit the type name when accessing static members. Example: MainAxisAlignment.start → .startInspired by Swift’s syntax, this dramatically simplifies code in Flutter’s build methods.

Build Hooks (formerly Native Assets#

Now stable — allows executing native build logic (e.g., C/C++ compilation, code generation) during the build phase.
Improves automation and native interoperability for packages.

Analyzer Plug-in Syste#

Opens up custom static analysis, quick fixes, and IDE extension capabilities. Helps teams create customized lint rules and QA workflows.

Language and Productivity Improvements#

  • Smarter type inference and clearer error messages
  • Better, more complete documentation
  • BuildRunner AOT compilation delivers a 5–10× performance boost

Flutter 3.38 — Framework, Platform & Web Upgrades#

Web Enhancements#

  • Web Server Configuration: Introduced webdevconfig.yaml to configure ports, paths, HTTPS certificates, and custom headers.
  • URL Rewrites (Proxy): New proxy keyword enables flexible API redirection.
  • Improved Hot Reload: flutter run -d web-server now supports hot reload across multiple browsers, not just Chrome.

iOS / macOS Support#

  • Fully supports the latest platforms: iOS 18, macOS 15, Xcode 16.
  • UIScene Lifecycle API compliance with Apple’s latest standards — all UIKit apps must adopt it moving forward.
  • Launch Optimization: flutter run now works without opening the full Xcode IDE, using only CLI tools.

Android Modernization#

  • 16KB Page Size Support: Meets Android 15 requirements, significantly improving performance.
  • NDK r28 Default: Ensures 16KB alignment and improves security.
  • Predictive Back Gesture: Now enabled by default.

Development Tools & Core Architecture#

  • Widget Preview Enhancements: Preview multiple component versions side-by-side in Android Studio/IntelliJ.
  • Material / Cupertino Decoupling: These design libraries are being separated for independent updates.
  • Performance Overlay Rebuilt: Improves performance tracking accuracy while reducing GPU overhead.

AI Integration & New Packages#

Gemini CLI Extension
Adds Flutter-specific commands and structured generation, supporting /create, /modify, and /commit workflows.

MCP (Model Context Protocol)
An open protocol that allows AI agents to inspect Dart code and trigger hot reloads.

Flutter GenUI Package
A Generative UI architecture that enables AI to create dynamic UI components.

Gemini Live API Integration
Supports real-time voice interaction apps through firebase_ai_logic.


2. Advantages / Strengths#

Development Efficiency & Framework Strengths#

  • Cross-platform consistency: A single codebase runs on Android, iOS, Web, and Desktop.
  • Native-quality experience: e.g., Notebook LM built with Flutter, launched in 7 months, and featured on the App Store.
  • Performance Boosts: Android 16KB Page Size and Vulkan/OpenGL improvements enhance speed and stability.
  • Mature Plugin Ecosystem: Reliable packages like just_audio, file_picker, and in_app_review.

AI Integration Strengths#

  • Rapid Prototyping: Gemini CLI can automatically scaffold application prototypes.
  • Natural Language Development: Developers can trigger precise tools via text prompts.
  • Dynamic Generative UI (GenUI): AI can build interactive UI components, not just text responses.
  • AI-driven Business Logic: Modify app behavior through system prompts — no code changes required.

Tooling & Syntax Enhancements#

  • Dot Shorthands: Cleaner, more readable code.
  • Build Hooks: Stronger native extensibility.
  • AOT BuildRunner: Up to 10× faster build performance.
  • Widget Preview: Streamlined design validation and development.

3. Developer Recommendations#

AI Agent Workflow#

  • Use Gemini CLI to define project conventions and accelerate feature iteration.
  • Combine with freezed and json_serializable to help Gemini understand data structures.

GenUI Usage Recommendations#

  • Define JSON Schemas to limit what UI the AI can generate.
  • Keep LLM complexity manageable to stay within model capabilities.
  • Use GenUI observability tools to track generated UI results.

Platform Migration Tips#

Android

  • Manually update NDK to r28 to ensure 16KB page size compatibility.

iOS/macOS

  • Test for UIScene API compatibility.
  • Plugin authors are encouraged to migrate from CocoaPods to SPM (Swift Package Manager).

Community Involvement#

  • Adopt Federated Plugins to extend desktop and web capabilities.
  • Developers with Windows/Linux ARM projects are encouraged to report issues to the Flutter team for better platform support.

4. Future Expectations / Roadmap#

Direct Native Interop#

Expected in Beta during 2025, enabling direct platform API interaction.
Official collaboration with early package adopters is underway.

Design Language Decoupling#

Material and Cupertino will become independent packages with faster release cycles.

Dart Language Evolution#

  • Augmentations: Enables cross-file structural extensions.
  • Shared Memory Multithreading: Researching true native-level concurrency.

Web Platform Enhancements#

  • WASM (WebAssembly): Adds deferred loading and next-gen JS interop.
  • User Experience Improvements: Scrolling and text input now feel closer to native apps.

Desktop Platform#

  • Multi-window Support: Experimental APIs for Linux/macOS led by Canonical.
  • SPM by Default: Swift Package Manager is planned to become the default integration tool.

AI & Generative UI#

  • GenUI Server Agent: Allows servers to stream dynamic UI blocks to clients.
  • Flutter GPU / Scene Architecture: Temporarily paused to focus on Android Impeller migration and GPU pipeline refinement.

Summary#

Flutter 3.38 and Dart 3.10 are more than just version updates —
they represent a full evolution from developer productivity → AI-driven experiences → native integration → cross-platform scalability.

A major milestone marking the beginning of the AI × App Development Era for Flutter.


“Free citations are welcome, but source must be cited”

本文原刊登於 Medium。