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
Eric Windmill 806830d94e
Merge branch 'main' of https://github.com/flutter/samples
4 months ago
.github Bump actions/upload-artifact from 4.3.6 to 4.4.0 (#2427) 4 months ago
add_to_app matching issue tracker to top-level samples README (#2405) 4 months ago
ai_recipe_generation CI Fix, part #2 (#2423) 4 months ago
analysis_defaults Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
android_splash_screen Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
animations Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
asset_transformation Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
background_isolate_channels Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
code_sharing Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
context_menus Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
deeplink_store_example Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
desktop_photo_search Update old wiki links (#2317) 7 months ago
dynamic_theme Add IDX template configuration to Gemini samples (#2344) 6 months ago
experimental Update `pedometer` (#2424) 4 months ago
flutter_maps_firestore Bump location from 6.0.2 to 7.0.0 in /flutter_maps_firestore (#2340) 6 months ago
form_app Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
game_template CI Fix, part #2 (#2423) 4 months ago
gemini_tasks Add IDX template configuration to Gemini samples (#2344) 6 months ago
google_maps Bump google_maps_flutter from 2.5.3 to 2.7.0 in /google_maps (#2360) 5 months ago
infinite_list Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
ios_app_clip Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
isolate_example Fixups (#2310) 7 months ago
jsonexample Drop `jsonexample` (#2089) 1 year ago
material_3_demo CI Fix, part #2 (#2423) 4 months ago
navigation_and_routing Bump url_strategy from 0.2.0 to 0.3.0 in /navigation_and_routing (#2375) 5 months ago
place_tracker Migrate `place_tracker` away from deprecated BitmapDescriptor method (#2309) 7 months ago
platform_channels Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
platform_design Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
platform_view_swift Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
provider_counter Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
provider_shopper Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
simple_shader Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
simplistic_calculator Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
simplistic_editor CI Fix, part #2 (#2423) 4 months ago
testing_app Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
tool Flutter 3.24 update, Add CarouselView examples to demo 3 (#2377) 5 months ago
veggieseasons Veggie Seasons detail page update (#2425) 4 months ago
web Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292) 8 months ago
web_embedding Bump zone.js from 0.14.10 to 0.15.0 in /web_embedding/ng-flutter (#2397) 4 months ago
.gitattributes Add a .gitattributes file (#929) 3 years ago
.gitignore Drop lock files from repo (#1282) 3 years ago
AUTHORS Add game_template (#1180) 3 years ago
CONTRIBUTING.md Update old wiki links (#2317) 7 months ago
LICENSE Adding Rally App to Flutter Samples (#135) 5 years ago
PATENTS Initial commit 7 years ago
README.md Drop retired Flutter Developer Google group (#2103) 1 year ago

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.