diff --git a/lib/src/animated_dialog.dart b/lib/src/animated_dialog.dart index b12e9bf..634916e 100644 --- a/lib/src/animated_dialog.dart +++ b/lib/src/animated_dialog.dart @@ -445,7 +445,7 @@ class CustomDialogWidget extends StatelessWidget { child: DefaultTextStyle( style: (titleTextStyle ?? dialogTheme.titleTextStyle ?? - theme.textTheme.headline6)!, + theme.textTheme.titleLarge)!, child: Semantics( child: title, namesRoute: true, @@ -485,7 +485,7 @@ class CustomDialogWidget extends StatelessWidget { child: DefaultTextStyle( style: (contentTextStyle ?? dialogTheme.contentTextStyle ?? - theme.textTheme.subtitle1)!, + theme.textTheme.titleMedium)!, child: content!, ), ), diff --git a/lib/src/classic_dialog_widget.dart b/lib/src/classic_dialog_widget.dart index c95e611..3760208 100644 --- a/lib/src/classic_dialog_widget.dart +++ b/lib/src/classic_dialog_widget.dart @@ -79,9 +79,9 @@ class ClassicGeneralDialogWidget extends StatelessWidget { negativeText ?? 'cancel', style: negativeTextStyle ?? TextStyle( - color: Theme.of(context).textTheme.caption!.color, + color: Theme.of(context).textTheme.bodySmall!.color, fontSize: - Theme.of(context).textTheme.button!.fontSize), + Theme.of(context).textTheme.labelLarge!.fontSize), ), ) : Container(), @@ -107,7 +107,7 @@ class ClassicGeneralDialogWidget extends StatelessWidget { TextStyle( color: Theme.of(context).primaryColor, fontSize: - Theme.of(context).textTheme.button!.fontSize), + Theme.of(context).textTheme.labelLarge!.fontSize), ), ) : Container(), @@ -316,8 +316,8 @@ class ClassicListDialogWidgetState extends State { child: Text( widget.negativeText ?? 'cancel', style: TextStyle( - color: Theme.of(context).textTheme.caption!.color, - fontSize: Theme.of(context).textTheme.button!.fontSize), + color: Theme.of(context).textTheme.bodySmall!.color, + fontSize: Theme.of(context).textTheme.labelLarge!.fontSize), ), ), TextButton( @@ -362,7 +362,7 @@ class ClassicListDialogWidgetState extends State { widget.positiveText ?? 'confirm', style: TextStyle( color: Theme.of(context).primaryColor, - fontSize: Theme.of(context).textTheme.button!.fontSize), + fontSize: Theme.of(context).textTheme.labelLarge!.fontSize), ), ), ],