Reland "Add shadowColor and surfaceTintColor to Dialog and DialogTheme." #108718

This commit is contained in:
Darren Austin
2022-08-02 17:26:22 -07:00
committed by GitHub
parent c1cd20b760
commit 46e5bf9d45
5 changed files with 120 additions and 12 deletions

View File

@@ -27,9 +27,11 @@ class _${blockName}DefaultsM3 extends DialogTheme {
@override
Color? get iconColor => _colors.secondary;
// TODO(darrenaustin): overlay should be handled by Material widget: https://github.com/flutter/flutter/issues/9160
@override
Color? get backgroundColor => ElevationOverlay.colorWithOverlay(${componentColor("md.comp.dialog.container")}, _colors.primary, ${elevation("md.comp.dialog.container")});
Color? get backgroundColor => ${componentColor("md.comp.dialog.container")};
@override
Color? get surfaceTintColor => ${componentColor("md.comp.dialog.container.surface-tint-layer")};
@override
TextStyle? get titleTextStyle => ${textStyle("md.comp.dialog.headline")};