Skip to content

Commit

Permalink
fix(utils): Fix rich text in question dialog losing theme
Browse files Browse the repository at this point in the history
  • Loading branch information
realth000 committed Sep 7, 2024
1 parent 268ec3b commit 0d75905
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/utils/show_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,8 @@ Future<bool?> showQuestionDialog({
return AlertDialog(
scrollable: true,
title: Text(title),
content: message != null
? SelectableText(message)
: RichText(
text: richMessage!,
),
content:
message != null ? SelectableText(message) : Text.rich(richMessage!),
actions: [
TextButton(
child: Text(context.t.general.cancel),
Expand Down

0 comments on commit 0d75905

Please sign in to comment.