add mute and delete channel

This commit is contained in:
Salvatore Giordano
2020-07-20 15:33:21 +02:00
parent 2541d5e474
commit d99afe7e63
4 changed files with 154 additions and 22 deletions
+30
View File
@@ -12,3 +12,33 @@ Future<void> launchURL(BuildContext context, String url) async {
);
}
}
Future<bool> showConfirmationDialog(
BuildContext context,
String question,
) {
return showDialog<bool>(
context: context,
builder: (context) {
return AlertDialog(
title: Text(question),
actions: <Widget>[
FlatButton(
child: Text('Ok'),
onPressed: () => Navigator.pop(
context,
true,
),
),
FlatButton(
child: Text('Cancel'),
onPressed: () => Navigator.pop(
context,
false,
),
),
],
);
},
);
}