♻️ Trying out the new built-in webrtc
This commit is contained in:
@@ -44,10 +44,12 @@ void showInfoAlert(String message, String title) async {
|
||||
|
||||
Future<bool> showConfirmAlert(String message, String title) async {
|
||||
final result = await js.context.callMethod('swal', [
|
||||
title,
|
||||
message,
|
||||
'question',
|
||||
{'buttons': true},
|
||||
js.JsObject.jsify({
|
||||
'title': title,
|
||||
'text': message,
|
||||
'icon': 'info',
|
||||
'buttons': {'cancel': true, 'confirm': true},
|
||||
}),
|
||||
]);
|
||||
return result == true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user