Qun Cheng
2e7fa83f67
Normalize Card theme ( #151914 )
...
This PR is to make preparations to make `CardTheme` conform to Flutter's conventions for component themes:
* Added a `CardThemeData` class which defines overrides for the defaults for `Card` properties.
* Added 2 `CardTheme` constructor parameters: `CardThemeData? data` and `Widget? child`. This is now the preferred way to configure a `CardTheme`:
```dart
CardTheme(
data: CardThemeData(color: xxx, elevation: xxx, ...),
child: Card(...)
)
```
These two properties are made nullable to not break existing apps which has customized `ThemeData.cardTheme`.
* Changed the type of theme defaults from `CardTheme` to `CardThemeData`.
TODO:
* Fix internal failures that may have breakages.
* Change the type of `ThemeData.cardTheme` from `CardTheme` to `CardThemeData`. This may cause breaking changes, a migration guide will be created.
Addresses the "theme normalization" sub project within https://github.com/flutter/flutter/issues/91772
2024-07-29 16:48:06 +00:00
..
2024-04-09 19:35:07 +00:00
2024-06-13 19:28:21 +00:00
2024-04-09 19:35:07 +00:00
2024-07-01 17:06:54 +00:00
2024-07-08 21:01:56 +00:00
2024-04-25 10:32:45 -07:00
2024-04-25 10:32:45 -07:00
2024-05-28 16:35:29 -07:00
2024-05-28 16:35:29 -07:00
2024-07-01 23:36:32 +00:00
2024-06-21 14:48:41 -07:00
2024-03-19 17:58:13 +00:00
2024-07-26 16:15:36 +00:00
2024-03-19 17:58:13 +00:00
2024-06-12 20:05:10 +00:00
2024-06-12 20:05:10 +00:00
2024-07-29 16:48:06 +00:00
2024-07-22 09:53:40 -07:00
2024-07-27 04:40:17 +00:00
2024-07-08 21:01:56 +00:00
2024-05-10 23:37:05 +00:00
2024-06-13 19:28:21 +00:00
2024-05-10 23:37:05 +00:00
2024-06-13 19:28:21 +00:00
2024-06-20 06:44:11 -07:00
2024-06-14 00:07:48 +00:00
2024-04-01 09:42:51 +00:00
2024-05-28 16:35:29 -07:00
2024-07-08 21:01:56 +00:00
2024-05-30 17:53:03 +00:00
2024-06-12 20:05:10 +00:00
2024-07-09 19:55:47 +00:00
2024-05-10 22:08:59 +00:00
2024-07-08 21:01:56 +00:00
2024-06-12 20:05:10 +00:00
2024-05-15 18:37:07 +00:00
2024-04-08 20:47:13 +00:00
2024-07-24 21:17:06 +00:00
2024-06-27 10:52:48 -07:00
2024-06-12 20:05:10 +00:00
2024-06-12 20:05:10 +00:00
2024-06-12 20:05:10 +00:00
2024-07-27 04:40:17 +00:00
2024-06-12 20:05:10 +00:00
2024-06-13 19:28:21 +00:00
2024-06-12 20:05:10 +00:00
2024-03-19 17:58:13 +00:00
2024-06-12 20:05:10 +00:00
2024-04-24 11:56:32 +00:00
2024-07-15 07:09:09 +00:00
2024-04-09 19:35:07 +00:00
2024-04-09 19:35:07 +00:00
2024-06-12 20:05:10 +00:00
2024-06-13 19:28:21 +00:00
2024-07-08 21:01:56 +00:00
2024-07-25 20:51:00 +00:00
2024-07-27 04:40:17 +00:00
2024-03-19 17:58:16 +00:00
2024-04-03 15:49:38 -07:00
2024-06-12 20:05:10 +00:00
2024-03-19 17:58:13 +00:00
2024-07-11 19:25:18 +00:00
2024-07-11 19:25:18 +00:00
2024-03-11 23:04:57 +00:00
2024-06-12 20:05:10 +00:00
2024-03-19 17:58:13 +00:00
2024-06-12 20:05:10 +00:00
2024-03-19 17:58:13 +00:00
2024-06-12 20:05:10 +00:00
2024-05-28 16:35:29 -07:00
2024-06-12 20:05:10 +00:00
2024-05-28 16:35:29 -07:00
2024-03-13 18:07:59 +00:00
2024-05-28 16:35:29 -07:00
2024-05-28 16:35:29 -07:00
2024-07-16 20:27:11 +00:00
2024-06-20 19:18:21 +00:00
2024-03-27 16:43:10 -07:00
2024-05-20 17:43:03 +00:00
2024-07-27 04:40:17 +00:00
2024-07-24 22:47:55 +00:00
2024-03-19 17:58:13 +00:00
2024-05-28 16:35:29 -07:00
2024-06-12 20:05:10 +00:00
2024-07-27 04:40:17 +00:00
2024-06-17 19:53:04 +00:00
2024-03-13 16:31:50 +00:00
2024-03-19 17:58:13 +00:00
2024-05-29 00:20:18 +00:00
2024-03-19 17:58:13 +00:00
2024-07-08 21:01:56 +00:00
2024-06-12 20:05:10 +00:00
2024-04-24 11:56:32 +00:00
2024-04-24 09:06:17 -07:00
2024-07-15 07:09:09 +00:00
2024-07-15 07:09:09 +00:00
2024-07-01 23:36:32 +00:00
2024-04-15 16:06:07 +00:00
2024-03-28 01:20:55 +00:00
2024-07-27 04:40:17 +00:00
2024-07-16 20:25:09 +00:00
2024-07-16 20:25:09 +00:00
2024-07-26 11:54:28 +00:00
2024-07-26 11:54:28 +00:00
2024-04-17 07:59:07 +00:00
2024-06-12 20:05:10 +00:00
2024-07-08 21:01:56 +00:00
2024-06-18 17:52:21 +00:00
2024-06-17 19:53:04 +00:00
2024-07-08 21:01:56 +00:00
2024-03-19 17:58:13 +00:00
2024-07-11 16:51:35 +00:00
2024-06-12 20:05:10 +00:00
2024-05-18 10:41:56 -07:00
2024-03-28 01:20:55 +00:00
2024-06-12 20:05:10 +00:00