diff --git a/packages/flutter/lib/src/material/dialog.dart b/packages/flutter/lib/src/material/dialog.dart index 3d8336fc011..1659dad97a0 100644 --- a/packages/flutter/lib/src/material/dialog.dart +++ b/packages/flutter/lib/src/material/dialog.dart @@ -508,7 +508,8 @@ class AlertDialog extends StatelessWidget { /// Style for the text in the [title] of this [AlertDialog]. /// /// If null, [DialogTheme.titleTextStyle] is used. If that's null, defaults to - /// [TextTheme.titleLarge] of [ThemeData.textTheme]. + /// [TextTheme.headlineSmall] of [ThemeData.textTheme] if + /// [ThemeData.useMaterial3] is true, [TextTheme.titleLarge] otherwise. final TextStyle? titleTextStyle; /// The (optional) content of the dialog is displayed in the center of the @@ -542,7 +543,8 @@ class AlertDialog extends StatelessWidget { /// Style for the text in the [content] of this [AlertDialog]. /// /// If null, [DialogTheme.contentTextStyle] is used. If that's null, defaults - /// to [TextTheme.titleMedium] of [ThemeData.textTheme]. + /// to [TextTheme.bodyMedium] of [ThemeData.textTheme] if + /// [ThemeData.useMaterial3] is true, [TextTheme.titleMedium] otherwise. final TextStyle? contentTextStyle; /// The (optional) set of actions that are displayed at the bottom of the