File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed
Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ Future<bool?> showQuestionDialog({
4242 required String title,
4343 String ? message,
4444 TextSpan ? richMessage,
45+ bool dangerous = false ,
4546}) async {
4647 assert (
4748 message != null || richMessage != null ,
@@ -64,9 +65,17 @@ Future<bool?> showQuestionDialog({
6465 },
6566 ),
6667 TextButton (
67- child: Text (context.t.general.ok),
68+ child: Text (
69+ context.t.general.ok,
70+ style: dangerous
71+ ? TextStyle (color: Theme .of (context).colorScheme.error)
72+ : null ,
73+ ),
6874 onPressed: () {
69- Navigator .pop (context, true );
75+ Navigator .pop (
76+ context,
77+ true ,
78+ );
7079 },
7180 ),
7281 ],
Original file line number Diff line number Diff line change @@ -128,9 +128,17 @@ class _NoticeCardV2State extends State<NoticeCardV2> {
128128 value: _Actions .deleteItem,
129129 child: Row (
130130 children: [
131- const Icon (Icons .delete_forever_outlined),
131+ Icon (
132+ Icons .delete_forever_outlined,
133+ color: Theme .of (context).colorScheme.error,
134+ ),
132135 sizedBoxPopupMenuItemIconSpacing,
133- Text (tr.delete.title),
136+ Text (
137+ tr.delete.title,
138+ style: TextStyle (
139+ color: Theme .of (context).colorScheme.error,
140+ ),
141+ ),
134142 ],
135143 ),
136144 ),
@@ -147,6 +155,7 @@ class _NoticeCardV2State extends State<NoticeCardV2> {
147155 context: context,
148156 title: tr.title,
149157 message: tr.detail,
158+ dangerous: true ,
150159 );
151160 if (! context.mounted || result == null || ! result) {
152161 return ;
You can’t perform that action at this time.
0 commit comments