1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-12-14 23:25:45 +00:00

Continue to fix deprecation warnings

This commit is contained in:
2021-03-13 15:28:34 +01:00
parent 819e2a7590
commit 230cb2c018
13 changed files with 32 additions and 28 deletions

View File

@@ -91,7 +91,7 @@ class _FriendsListScreenState extends SafeState<FriendsListScreen> {
Widget _buildError() => buildErrorCard(
tr("Could not load your list of friends!"),
actions: [
FlatButton(
TextButton(
onPressed: _refreshList,
child: Text(
tr("Retry").toUpperCase(),
@@ -171,11 +171,11 @@ class _FriendsListScreenState extends SafeState<FriendsListScreen> {
content: Text(tr(
"Are you sure do you want to remove this friend from your list of friends ? A friendship request will have to be sent to get this user back to your list!")),
actions: <Widget>[
FlatButton(
TextButton(
onPressed: () => Navigator.pop(context, false),
child: Text(tr("Cancel").toUpperCase()),
),
FlatButton(
TextButton(
onPressed: () => Navigator.pop(context, true),
child: Text(
tr("Confirm").toUpperCase(),