@@ -25,6 +25,9 @@ import 'material_localizations.dart';
2525import 'text_theme.dart' ;
2626import 'theme.dart' ;
2727
28+ part 'generated/dialog_defaults_m3.g.dart' ;
29+ part 'generated/dialog_fullscreen_defaults_m3.g.dart' ;
30+
2831// Examples can assume:
2932// enum Department { treasury, state }
3033// late BuildContext context;
@@ -1981,69 +1984,3 @@ class _DialogDefaultsM2 extends DialogThemeData {
19811984 @override
19821985 EdgeInsetsGeometry ? get actionsPadding => EdgeInsets .zero;
19831986}
1984-
1985- // BEGIN GENERATED TOKEN PROPERTIES - DialogFullscreen
1986-
1987- // Do not edit by hand. The code between the "BEGIN GENERATED" and
1988- // "END GENERATED" comments are generated from data in the Material
1989- // Design token database by the script:
1990- // dev/tools/gen_defaults/bin/gen_defaults.dart.
1991-
1992- // dart format off
1993- class _DialogFullscreenDefaultsM3 extends DialogThemeData {
1994- const _DialogFullscreenDefaultsM3 (this .context): super (clipBehavior: Clip .none);
1995-
1996- final BuildContext context;
1997-
1998- @override
1999- Color ? get backgroundColor => Theme .of (context).colorScheme.surface;
2000- }
2001- // dart format on
2002-
2003- // END GENERATED TOKEN PROPERTIES - DialogFullscreen
2004-
2005- // BEGIN GENERATED TOKEN PROPERTIES - Dialog
2006-
2007- // Do not edit by hand. The code between the "BEGIN GENERATED" and
2008- // "END GENERATED" comments are generated from data in the Material
2009- // Design token database by the script:
2010- // dev/tools/gen_defaults/bin/gen_defaults.dart.
2011-
2012- // dart format off
2013- class _DialogDefaultsM3 extends DialogThemeData {
2014- _DialogDefaultsM3 (this .context)
2015- : super (
2016- alignment: Alignment .center,
2017- elevation: 6.0 ,
2018- shape: const RoundedRectangleBorder (borderRadius: BorderRadius .all (Radius .circular (28.0 ))),
2019- clipBehavior: Clip .none,
2020- );
2021-
2022- final BuildContext context;
2023- late final ColorScheme _colors = Theme .of (context).colorScheme;
2024- late final TextTheme _textTheme = Theme .of (context).textTheme;
2025-
2026- @override
2027- Color ? get iconColor => _colors.secondary;
2028-
2029- @override
2030- Color ? get backgroundColor => _colors.surfaceContainerHigh;
2031-
2032- @override
2033- Color ? get shadowColor => Colors .transparent;
2034-
2035- @override
2036- Color ? get surfaceTintColor => Colors .transparent;
2037-
2038- @override
2039- TextStyle ? get titleTextStyle => _textTheme.headlineSmall;
2040-
2041- @override
2042- TextStyle ? get contentTextStyle => _textTheme.bodyMedium;
2043-
2044- @override
2045- EdgeInsetsGeometry ? get actionsPadding => const EdgeInsets .only (left: 24.0 , right: 24.0 , bottom: 24.0 );
2046- }
2047- // dart format on
2048-
2049- // END GENERATED TOKEN PROPERTIES - Dialog
0 commit comments