+0
日增长
19,294
stars
7,846
forks
462
watchers
2,414
prs
455
issues
0
releases
README
Flutter samples A collection of open source samples that illustrate best practices for [Flutter]. Contributing We appreciate fixes and necessary improvements to existing samples. But in most cases, we're not currently adding new samples to this repository while we rethink sample code in the new LLM world. Please read the [contributor's guide] if you have contributions. Googlers, you can freely add samples to the [flutter/demos] repository. Index Quickstarts [asset_transformation] - Demonstrates how to transform images' color scales and formats. [background_isolate_channels] - Demonstrates how to use long-lived isolates. [cupertino_gallery] - A gallery of Cupertino widgets, demonstrating iOS-style UI components in Flutter. [date_planner] - An in-progress exploration of an iOS-style Date Planner app, similar to the SwiftUI Tutorial app. [desktop_photo_search] - Demonstrates desktop features in both Material and FluentUI design systems. [dynamic_theme] - A developer sample demonstrating how to call on-device Flutter APIs based on output from the Gemini API. [form_app] - A sample demonstrating different types of forms and best practices. [google_maps] - Demonstrates the Google Maps for Flutter plugin. [navigation_and_routing] - A sample that shows how to use [go_router] API to handle common navigation scenarios. [pedometer] - A demo of a plugin that leverages FFIgen & JNIgen to call platform APIs directly from Dart code. [platform_design] - This sample project shows a Flutter app that maximizes application code reuse while adhering to different design patterns on Android and iOS. [simple_sdf] - A simple [Flutter fragment shaders] sample project showing how to draw Signed Distance Functions with the FragmentShader API. [simple_shader] - A simple [Flutter fragment shaders] sample project. [testing_app] - A sample app that shows different types of testing in Flutter. [web_embedding] - This directory contains examples of how to embed Flutter in web apps (without iframes). [element_embedding_demo] - Modifies the index.html of a flutter app so it is launched in a custom hostElement. This is the most basic embedding example. [ng-flutter] - A simple Angular app (and component) that replicates the above example, but in an Angular style. Native platform samples [add-to-app] - Collection of samples that demonstrate embedding Flutter a view into a native app. [fullscreen] — Embeds a full screen instance of Flutter into an existing iOS or Android app. [prebuilt_module] — Embeds a full screen instance of Flutter as a prebuilt library that can be loaded into an existing iOS or Android app. [plugin] — Embeds a full screen Flutter instance that is using plugins into an existing iOS or Android app. [books] — Mimics a real world use-case of embedding Flutter into an existing Android app and demonstrates using [Pigeon] to communicate between Flutter and the host application. [multiple_flutters] — Shows the
Top issues
#2654[add-to-app] Cannot re-open Flutter screen after multiple transitions between iOS native and Flutter3 comments · 2025-06-17#2518[navigator2 quickstart] Create a navigator2 quickstart3 comments · 2024-12-02#2506Unify the naming convention of names in this repoistory2 comments · 2024-12-02#2877[compass_app] UI state never updates for the HomeScreen (regression after the implementation of #2788)1 comments · 2026-07-30#2515[navigation_and_routing] Simplify into quickstart1 comments · 2024-12-02#2409☂️ Migrate samples to 'quickstart' format, update and deprecate samples as necessary1 comments · 2024-08-28#2568Many samples use old Gradle, impossible to build on modern JDK0 comments · 2025-01-26#2525Update CODEOWNERS to include owners of specific samples0 comments · 2024-12-02