flutter /samples

A collection of Flutter examples and demos

★ 19,294⑂ 7,846👁 462⑃ 2,414● 455▤ 0
DartNOASSERTIONCreated 2018-06-08docs.flutter.dev/reference/learning-resources
TA的项目
+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

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON