1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +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

@ -39,21 +39,25 @@ class PendingFriendTile extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
FlatButton(
ElevatedButton(
child: Text(
tr("Accept").toUpperCase(),
style: TextStyle(color: Colors.white),
),
color: Colors.green,
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.green)),
onPressed: () => onRespond(friend, true),
),
Container(width: 8.0,),
FlatButton(
Container(
width: 8.0,
),
ElevatedButton(
child: Text(
tr("Reject").toUpperCase(),
style: TextStyle(color: Colors.white),
),
color: Colors.red,
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.red)),
onPressed: () => onRespond(friend, false),
)
],