Add shadowColor and surfaceTintColor to Dialog and DialogTheme. (#108405)

This commit is contained in:
Darren Austin
2022-07-28 14:54:30 -07:00
committed by GitHub
parent 381f584928
commit 523b600efe
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")};