Commit Graph

17 Commits

Author SHA1 Message Date
Qun Cheng
6dd929ab28
Normalize Dialog theme (#153982)
This PR is to make preparations to make `DialogTheme` conform to Flutter's conventions for component themes:

* Added a `DialogThemeData` class which defines overrides for the defaults for `Dialog` properties.
* Added 2 `DialogTheme` constructor parameters: `DialogThemeData? data` and `Widget? child`. This is now the preferred way to configure a `DialogTheme`:
```
DialogTheme(
  data: DialogThemeData(color: xxx, elevation: xxx, ...),
  child: Dialog(...)
)
```
  These two properties are made nullable to not break existing apps which has customized `ThemeData.dialogTheme`.

* Changed the type of theme defaults from `DialogTheme` to `DialogThemeData`.

TODO:

* Fix internal failures.
* Change the type of `ThemeData.dialogTheme` from `DialogTheme` to `DialogThemeData`. 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-09-05 22:00:23 +00:00
Valentin Vignal
8e53ad917c
Add clipBehavior to DialogTheme (#147635)
Fixes https://github.com/flutter/flutter/issues/147634
2024-05-10 22:08:59 +00:00
Taha Tesser
fd6997f07a
Add Dialog.fullscreen and example (#112261) 2022-09-29 09:12:05 -07:00
Darren Austin
33ed6a3533
Fixing elevation issues with Material 3 (#110624)
* Added support for surfaceTintColor and shadowColor to the Dialog widgets.
* Updated the defaults for Material.shadowColor and Material.surfaceTint to allow turning off the features with a transparent color.
* Added support for shadowColor and surfaceTintColor for Drawer widget.
2022-09-06 16:16:45 -07:00
Xilai Zhang
72cd152f46
[flutter roll] Revert "Reland "Add shadowColor and surfaceTintColor to Dialog and Di… (#109170) 2022-08-08 18:57:09 +00:00
Darren Austin
46e5bf9d45
Reland "Add shadowColor and surfaceTintColor to Dialog and DialogTheme." #108718 2022-08-02 17:26:22 -07:00
Casey Hillers
4ed9d9de4d
Revert "Add shadowColor and surfaceTintColor to Dialog and DialogTheme." (#108621) 2022-07-29 18:03:07 +00:00
Darren Austin
523b600efe
Add shadowColor and surfaceTintColor to Dialog and DialogTheme. (#108405) 2022-07-28 14:54:30 -07:00
Darren Austin
d4061c19f4
Refactor gen_defaults to support multiple generated code blocks in the same file independently. (#107278) 2022-07-10 17:17:09 -07:00
Viren Khatri
672859a0cb
feat: add icon to AlertDialog (#104920) 2022-06-20 10:29:06 -07:00
Pierre-Louis
1d53378bec
reland #105109 (#105588) 2022-06-14 23:39:30 +02:00
Pierre-Louis
c4a6ab1626
Revert "Add actionsPadding to dialog theme (#105109)" (#105293)
This reverts commit 5d10cf550f.
2022-06-03 09:38:01 +02:00
Pierre-Louis
5d10cf550f
Add actionsPadding to dialog theme (#105109)
* add actionsPadding to dialog theme and refactor

* fix typo

* remove trailing spaces
2022-06-01 15:52:18 +02:00
Darren Austin
dfb4ff2f76
Updated tokens to v0.98. (#103360) 2022-05-09 23:15:44 -07:00
Michael Goderbauer
ca2d60e8e2
Prepare more of dev for use_super_parameters (#101073) 2022-03-30 14:05:05 -07:00
Darren Austin
0a7b3d72c9
Updated tokens to v0.92. (#100599) 2022-03-23 12:10:17 -07:00
Taha Tesser
5733374841
Migrate Dialog to Material 3 (#98919) 2022-03-04 13:16:17 -08:00