add basic emote picker

This commit is contained in:
Sorunome
2020-05-12 07:02:33 +00:00
committed by Christian Pauly
parent b3ecefd354
commit f8a0233b74
9 changed files with 570 additions and 3 deletions

View File

@ -107,6 +107,30 @@ class SimpleDialogs {
return confirmed;
}
Future<void> inform({
String titleText,
String contentText,
String okText,
}) async {
await showDialog(
context: context,
builder: (c) => AlertDialog(
title: titleText != null ? Text(titleText) : null,
content: contentText != null ? Text(contentText) : null,
actions: <Widget>[
FlatButton(
child: Text(
okText ?? L10n.of(context).ok.toUpperCase(),
),
onPressed: () {
Navigator.of(context).pop();
},
),
],
),
);
}
Future<dynamic> tryRequestWithLoadingDialog(Future<dynamic> request,
{Function(MatrixException) onAdditionalAuth}) async {
showLoadingDialog(context);