refactor: Update to Flutter 3.13.0

This commit is contained in:
krille-chan 2023-08-18 07:24:31 +02:00
commit 27d15612d9
No known key found for this signature in database
44 changed files with 167 additions and 159 deletions

View file

@ -67,7 +67,7 @@ class AddWidgetTileView extends StatelessWidget {
child: Text(L10n.of(context)!.addWidget),
),
],
)
),
],
);
}

View file

@ -547,7 +547,7 @@ class ChatController extends State<ChatPageWithRoom> {
MatrixImageFile(
bytes: bytes,
name: file.path,
)
),
],
room: room,
),
@ -568,7 +568,7 @@ class ChatController extends State<ChatPageWithRoom> {
MatrixVideoFile(
bytes: bytes,
name: file.path,
)
),
],
room: room,
),

View file

@ -78,7 +78,7 @@ class ChatInputRow extends StatelessWidget {
KeyBoardShortcuts(
keysToPress: {
LogicalKeyboardKey.altLeft,
LogicalKeyboardKey.keyA
LogicalKeyboardKey.keyA,
},
onKeysPressed: () =>
controller.onAddPopupMenuButtonSelected('file'),
@ -184,7 +184,7 @@ class ChatInputRow extends StatelessWidget {
child: KeyBoardShortcuts(
keysToPress: {
LogicalKeyboardKey.altLeft,
LogicalKeyboardKey.keyE
LogicalKeyboardKey.keyE,
},
onKeysPressed: controller.emojiPickerAction,
helpLabel: L10n.of(context)!.emojis,

View file

@ -120,7 +120,7 @@ class ChatView extends StatelessWidget {
icon: const Icon(Icons.delete_forever_outlined),
label: Text(L10n.of(context)!.delete),
),
)
),
];
} else {
return [

View file

@ -248,7 +248,7 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
),
),
),
)
),
],
),
),

View file

@ -44,7 +44,7 @@ class _CuteContentState extends State<CuteContent> {
widget.event.text,
style: const TextStyle(fontSize: 150),
),
if (label != null) Text(label)
if (label != null) Text(label),
],
),
);

View file

@ -54,7 +54,7 @@ class Message extends StatelessWidget {
EventTypes.Message,
EventTypes.Sticker,
EventTypes.Encrypted,
EventTypes.CallInvite
EventTypes.CallInvite,
}.contains(event.type)) {
if (event.type.startsWith('m.call.')) {
return const SizedBox.shrink();
@ -103,7 +103,7 @@ class Message extends StatelessWidget {
final noBubble = {
MessageTypes.Video,
MessageTypes.Image,
MessageTypes.Sticker
MessageTypes.Sticker,
}.contains(event.messageType) &&
!event.redacted;
final noPadding = {
@ -222,7 +222,7 @@ class Message extends StatelessWidget {
eventId: event.relationshipEventId!,
content: {
'msgtype': 'm.text',
'body': '...'
'body': '...',
},
senderId: event.senderId,
type: 'm.room.message',

View file

@ -88,7 +88,7 @@ class MessageContent extends StatelessWidget {
event.calcLocalizedBodyFallback(
MatrixLocals(l10n),
),
)
),
],
),
),

View file

@ -47,7 +47,7 @@ class MessageDownloadContent extends StatelessWidget {
),
overflow: TextOverflow.ellipsis,
),
)
),
],
),
),

View file

@ -217,7 +217,7 @@ class _AdaptableReactorsDialog extends StatelessWidget {
runSpacing: 4.0,
alignment: WrapAlignment.center,
children: <Widget>[
for (var reactor in reactionEntry!.reactors!)
for (final reactor in reactionEntry!.reactors!)
Chip(
avatar: Avatar(
mxContent: reactor.avatarUrl,

View file

@ -60,7 +60,7 @@ class VerificationRequestContent extends StatelessWidget {
: (started
? L10n.of(context)!.loadingPleaseWait
: L10n.of(context)!.newVerificationRequest)),
)
),
],
),
),

View file

@ -407,7 +407,7 @@ class InputBar extends StatelessWidget {
LogicalKeySet(
LogicalKeyboardKey.controlLeft,
LogicalKeyboardKey.keyM,
): PasteLineIntent()
): PasteLineIntent(),
},
child: Actions(
actions: !useShortCuts
@ -443,7 +443,7 @@ class InputBar extends StatelessWidget {
}
return null;
},
)
),
},
child: TypeAheadField<Map<String, String?>>(
direction: AxisDirection.up,

View file

@ -99,7 +99,7 @@ class ReactionsPicker extends StatelessWidget {
),
onTap: () =>
controller.pickEmojiReactionAction(allReactionEvents),
)
),
],
);
},

View file

@ -100,7 +100,7 @@ class SendFileDialogState extends State<SendFileDialog> {
child: Text('${L10n.of(context)!.sendOriginal} ($sizeString)'),
),
],
)
),
],
);
} else {