feat: add icon to AlertDialog (#104920)

This commit is contained in:
Viren Khatri
2022-06-20 22:59:06 +05:30
committed by GitHub
parent e649210f39
commit 672859a0cb
5 changed files with 398 additions and 23 deletions

View File

@@ -25,6 +25,9 @@ class _TokenDefaultsM3 extends DialogTheme {
late final ColorScheme _colors = Theme.of(context).colorScheme;
late final TextTheme _textTheme = Theme.of(context).textTheme;
@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")});