Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/src/animated_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -485,7 +485,7 @@ class CustomDialogWidget extends StatelessWidget {
child: DefaultTextStyle(
style: (contentTextStyle ??
dialogTheme.contentTextStyle ??
theme.textTheme.subtitle1)!,
theme.textTheme.titleMedium)!,
child: content!,
),
),
Expand Down
12 changes: 6 additions & 6 deletions lib/src/classic_dialog_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(),
Expand Down Expand Up @@ -316,8 +316,8 @@ class ClassicListDialogWidgetState<T> extends State<ClassicListDialogWidget> {
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(
Expand Down Expand Up @@ -362,7 +362,7 @@ class ClassicListDialogWidgetState<T> extends State<ClassicListDialogWidget> {
widget.positiveText ?? 'confirm',
style: TextStyle(
color: Theme.of(context).primaryColor,
fontSize: Theme.of(context).textTheme.button!.fontSize),
fontSize: Theme.of(context).textTheme.labelLarge!.fontSize),
),
),
],
Expand Down