mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
universal: style improvements (#67)
This commit is contained in:
@@ -135,6 +135,7 @@ Future<void> showConfirmDialog({
|
||||
required String content,
|
||||
required void Function() onConfirm,
|
||||
String confirmText = "Confirm",
|
||||
Color? btnColor,
|
||||
}) {
|
||||
return showDialog(
|
||||
context: context,
|
||||
@@ -147,6 +148,9 @@ Future<void> showConfirmDialog({
|
||||
context.pop();
|
||||
onConfirm();
|
||||
},
|
||||
style: FilledButton.styleFrom(
|
||||
backgroundColor: btnColor,
|
||||
),
|
||||
child: Text(confirmText.tl),
|
||||
),
|
||||
],
|
||||
|
Reference in New Issue
Block a user