flutter/examples/api/lib
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
..
animation Implement new AnimationStatus getters (#148570) 2024-05-20 17:43:03 +00:00
cupertino Style: Rename CupertinoSwitch activeColor and trackColor to activeTrackColor and InactiveTrackColor (#151367) 2024-08-07 17:42:57 +00:00
gestures Add an example for TapAndPanGestureRecognizer (#131873) 2023-08-09 19:59:03 +00:00
material un-break ThemeData equality (#154695) 2024-09-09 21:49:09 +00:00
painting Factor out deprecated names in example code (#151374) 2024-07-08 19:06:54 +00:00
rendering Add tests for sliver grid delegate with fixed cross axis count examples (#153500) 2024-08-29 21:41:21 +00:00
sample_templates Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
services Change some usage of RawKeyEvent to KeyEvent in preparation for deprecation (#136420) 2023-10-14 00:25:18 +00:00
ui/text Doc imports again (#152958) 2024-08-07 18:32:37 +00:00
widgets Add test for error_widget.0_test.dart (#153103) 2024-08-26 18:11:02 +00:00