flutter/examples
Hans Muller abd7cd0528
PinnedHeaderSliver example based on the iOS Settings AppBar (#151205)
A relatively elaborate PinnedSliverHeader example which creates an app bar that's similar to the one that appears in the iOS Settings app. In this example the pinned header starts out transparent and the first item in the list serves as the app's "Settings" title. When the title item has been scrolled completely behind the pinned header, the header animates its opacity from 0 to 1 and its (centered) "Settings" title appears. The fact that the header's opacity depends on the height of the title item - which is unknown until the list has been laid out - necessitates monitoring its SliverConstraints.scrollExtent from a scroll NotificationListener. 

https://github.com/flutter/flutter/assets/1377460/539e2591-d0d7-4508-8ce8-4b8f587d7648
2024-07-03 20:06:16 +00:00
..
api PinnedHeaderSliver example based on the iOS Settings AppBar (#151205) 2024-07-03 20:06:16 +00:00
flutter_view Manual engine roll to ddd4814 (#150952) 2024-06-27 21:57:32 +00:00
hello_world Manual engine roll to ddd4814 (#150952) 2024-06-27 21:57:32 +00:00
image_list Manual engine roll to ddd4814 (#150952) 2024-06-27 21:57:32 +00:00
layers Manual engine roll to ddd4814 (#150952) 2024-06-27 21:57:32 +00:00
platform_channel Manual engine roll to ddd4814 (#150952) 2024-06-27 21:57:32 +00:00
platform_channel_swift Remove discontinued device_info and connectivity plugins from flutter_gallery, roll pub packages (#150585) 2024-06-21 23:10:24 +00:00
platform_view Manual engine roll to ddd4814 (#150952) 2024-06-27 21:57:32 +00:00
splash Roll pub packages (#150267) 2024-06-14 18:19:41 +00:00
texture Remove discontinued device_info and connectivity plugins from flutter_gallery, roll pub packages (#150585) 2024-06-21 23:10:24 +00:00
.clang-format Implement Linux part of examples (#108068) 2022-12-08 08:44:11 +13:00
flutter_gallery.readme Move flutter_gallery to the testing folder (#52532) 2020-03-16 10:31:42 +01:00
README.md Update flutter.dev links from misc packages to more permanent destinations (#150532) 2024-06-20 23:09:08 +00:00

Flutter Examples

This directory contains several examples of using Flutter. To run an example, use flutter run inside that example's directory. See the getting started guide to install the flutter tool.

For additional samples, see the flutter/samples repo.

Available examples include:

Notes

Note on Gradle wrapper files in .gitignore:

Gradle wrapper files should normally be checked into source control. The example projects don't do that to avoid having several copies of the wrapper binary in the Flutter repo. Instead, the Gradle wrapper is injected by Flutter tooling, and the wrapper files are .gitignore'd to avoid making the Flutter repository dirty as a side effect of running the examples.