Google I/O 刚过去,有没有想法入 Flutter 呢?Samples 收录了大量 Flutter 编写的示例,你可以学习下来 pick Flutter 的最佳实践。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Brett Morgan c616e3213c
`next_gen_ui_demo`: Stop `Picture`s leaking (#1871)
3 years ago
.github Bump github/codeql-action from 2.3.5 to 2.3.6 (#1864) 3 years ago
add_to_app
analysis_defaults
android_splash_screen
animations
background_isolate_channels
code_sharing Bump http from 0.13.6 to 1.0.0 in /code_sharing/server (#1832) 3 years ago
deeplink_store_example
desktop_photo_search
experimental Bump google_fonts from 4.0.5 to 5.0.0 in /experimental/varfont_shader_puzzle (#1865) 3 years ago
flutter_maps_firestore
form_app Bump http from 0.13.6 to 1.0.0 in /form_app (#1830) 3 years ago
game_template Provide LocalKey to every custom transition (#1869) 3 years ago
google_maps Bump google_maps_flutter_web from 0.4.0+9 to 0.5.0 in /google_maps (#1856) 3 years ago
infinite_list
ios_app_clip
isolate_example
jsonexample
material_3_demo Add null safety check before displaying SnackBar (#1866) 3 years ago
navigation_and_routing
next_gen_ui_demo `next_gen_ui_demo`: Stop `Picture`s leaking (#1871) 3 years ago
place_tracker Bump google_maps_flutter_web from 0.4.0+9 to 0.5.0 in /place_tracker (#1855) 3 years ago
platform_channels
platform_design
platform_view_swift
provider_counter
provider_shopper
simple_shader Update samples for Dart 3.0.0 (#1803) 3 years ago
simplistic_calculator
simplistic_editor
testing_app
tool Elide `game_template` from master CI (#1858) 3 years ago
veggieseasons `veggieseasons`: Pin `go_router` version (#1840) 3 years ago
web
web_embedding Bump socket.io-parser from 4.2.2 to 4.2.3 in /web_embedding/ng-flutter (#1839) 3 years ago
.gitattributes
.gitignore
AUTHORS
CONTRIBUTING.md
LICENSE
MAINTENANCE.md
PATENTS
README.md

README.md

Flutter samples

Build Status

A collection of open source samples that illustrate best practices for Flutter.

Visual samples index

The easiest way to browse through the samples in this repo (as well as a few others!) is the visual samples index.

Tip: minimize download size

As this repository is quite big, you can use svn to download a single example. For example:

svn co https://github.com/flutter/samples/trunk/provider_shopper

You can also use a partial clone to skip blob objects that aren't currently checked out, while including the full commit history:

git clone --filter=blob:none https://github.com/flutter/samples.git

Interested in contributing?

See the contributor's guide!

Questions or issues?

If you have a general question about one of these samples or how to adapt its techniques for one of your own apps, try one of these resources:

If you run into a bug in one of the samples, please file an issue in the flutter/samples issue tracker.