1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Continue to fix deprecation warnings

This commit is contained in:
2021-03-13 15:38:43 +01:00
parent 230cb2c018
commit ad2cf6d4f9
8 changed files with 22 additions and 23 deletions

View File

@ -47,7 +47,7 @@ class _FriendshipStatusWidgetState extends State<FriendshipStatusWidget> {
// No request sent yet
if (widget.status.noRequestExchanged) {
return RaisedButton(
return ElevatedButton(
child: Text(tr("Send request").toUpperCase()),
onPressed: () =>
executeRequest(() => _friendsHelper.sendRequest(friendID)),
@ -56,12 +56,13 @@ class _FriendshipStatusWidgetState extends State<FriendshipStatusWidget> {
// Already sent a friendship request
if (widget.status.sentRequest) {
return RaisedButton(
return ElevatedButton(
child: Text(
tr("Cancel request").toUpperCase(),
style: WhiteTextColorStyle,
),
color: Colors.red,
style:
ButtonStyle(backgroundColor: MaterialStateProperty.all(Colors.red)),
onPressed: () =>
executeRequest(() => _friendsHelper.cancelRequest(friendID)),
);
@ -94,7 +95,7 @@ class _FriendshipStatusWidgetState extends State<FriendshipStatusWidget> {
}
// The two users are friends, offers to follow him
return RaisedButton(
return ElevatedButton(
child: Text((widget.status.following ? tr("Following") : tr("Follow"))
.toUpperCase()),
onPressed: () => executeRequest(() =>

View File

@ -153,8 +153,7 @@ class _InitializeWidgetState extends SafeState<InitializeWidget> {
SizedBox(
height: 30,
),
RaisedButton(
color: Colors.indigo,
ElevatedButton(
onPressed: () => _tryConnect(),
child: Text(tr("Try again")),
),

View File

@ -135,7 +135,7 @@ class _UserPageTabletState extends State<UserPageTablet> {
// Private messages
!_isCurrentUser
? Expanded(
child: OutlineButton(
child: OutlinedButton(
onPressed: () =>
openPrivateConversation(context, _userInfo.id),
child: Icon(Icons.message),