Revert "Add shadowColor and surfaceTintColor to Dialog and DialogTheme." (#108621)

This commit is contained in:
Casey Hillers
2022-07-29 11:03:07 -07:00
committed by GitHub
parent 5532775b19
commit 4ed9d9de4d
5 changed files with 12 additions and 120 deletions

View File

@@ -27,11 +27,9 @@ 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 => ${componentColor("md.comp.dialog.container")};
@override
Color? get surfaceTintColor => ${componentColor("md.comp.dialog.container.surface-tint-layer")};
Color? get backgroundColor => ElevationOverlay.colorWithOverlay(${componentColor("md.comp.dialog.container")}, _colors.primary, ${elevation("md.comp.dialog.container")});
@override
TextStyle? get titleTextStyle => ${textStyle("md.comp.dialog.headline")};