flutter/examples
Nate Wilson bfa04edca6
un-break ThemeData equality (#154695)
This PR is _almost_ able to close issue #89127.

Sadly, no `InheritedModel` or custom `RenderObject`s today; instead the [WidgetState operators](https://main-api.flutter.dev/flutter/widgets/WidgetStateOperators.html) have been restructured to support equality checks.

`WidgetStateProperty.fromMap()` is now capable of accurate equality checks, and all of the `.styleFrom()` methods have been refactored to use that constructor.

(Equality checks are still broken for `WidgetStateProperty.resolveWith()`, and any other non-`const` objects that implement the interface.)

<br><br>

credit for this idea goes to @justinmc: https://github.com/flutter/flutter/issues/89127#issuecomment-2313187703
2024-09-09 21:49:09 +00:00
..
api un-break ThemeData equality (#154695) 2024-09-09 21:49:09 +00:00
flutter_view Manual dependency bump (#152881) 2024-08-06 02:40:27 +00:00
hello_world Roll Flutter Engine from c50eb8a65097 to 419fb8c0ab3e (#154734) 2024-09-06 15:42:07 -07:00
image_list Upgrade leak tracker. (#154157) 2024-08-28 05:23:18 +00:00
layers Upgrade leak tracker. (#154157) 2024-08-28 05:23:18 +00:00
platform_channel Roll Flutter Engine from c50eb8a65097 to 419fb8c0ab3e (#154734) 2024-09-06 15:42:07 -07:00
platform_channel_swift Roll Flutter Engine from c50eb8a65097 to 419fb8c0ab3e (#154734) 2024-09-06 15:42:07 -07:00
platform_view Manual dependency bump (#152881) 2024-08-06 02:40:27 +00:00
splash Upgrade leak tracker. (#154157) 2024-08-28 05:23:18 +00:00
texture Roll Flutter Engine from c50eb8a65097 to 419fb8c0ab3e (#154734) 2024-09-06 15:42:07 -07: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.