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:
@ -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),
|
||||
)
|
||||
],
|
||||
|
Reference in New Issue
Block a user