flutter/examples
Qun Cheng 92107b15fd
Create new page transition for M3 (#158881)
This PR is to add a new page transition for Material 3. 

The new builder matches the latest Android page transition behavior;
while the new page slides in from right to left, it fades in at the same
time and the old page slides out from right to left, fading out at the
same time. When both pages are fading in/out, the black background might
show up, so I added a `ColoredBox` for the slides-out page whose color
defaults to `ColorScheme.surface`. The `backgroundColor` property can be
used to customize the default transition color.

This demo shows the forward and backward behaviors.


https://github.com/user-attachments/assets/a806f25d-8564-4cad-8dfc-eb4585294181

Fixes: https://github.com/flutter/flutter/issues/142352

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.
2024-12-07 00:56:57 +00:00
..
api Create new page transition for M3 (#158881) 2024-12-07 00:56:57 +00:00
flutter_view Bump Dart SDK to 3.7 (#159812) 2024-12-05 21:39:53 +00:00
hello_world Bump Dart SDK to 3.7 (#159812) 2024-12-05 21:39:53 +00:00
image_list Bump Dart SDK to 3.7 (#159812) 2024-12-05 21:39:53 +00:00
layers Bump Dart SDK to 3.7 (#159812) 2024-12-05 21:39:53 +00:00
platform_channel Bump Dart SDK to 3.7 (#159812) 2024-12-05 21:39:53 +00:00
platform_channel_swift Bump Dart SDK to 3.7 (#159812) 2024-12-05 21:39:53 +00:00
platform_view Bump Dart SDK to 3.7 (#159812) 2024-12-05 21:39:53 +00:00
splash Bump Dart SDK to 3.7 (#159812) 2024-12-05 21:39:53 +00:00
texture Bump Dart SDK to 3.7 (#159812) 2024-12-05 21:39:53 +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.