refactor: Update to Flutter 3.13.0
This commit is contained in:
parent
6445833283
commit
27d15612d9
44 changed files with 167 additions and 159 deletions
|
|
@ -67,7 +67,7 @@ class AddWidgetTileView extends StatelessWidget {
|
|||
child: Text(L10n.of(context)!.addWidget),
|
||||
),
|
||||
],
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ class ChatView extends StatelessWidget {
|
|||
icon: const Icon(Icons.delete_forever_outlined),
|
||||
label: Text(L10n.of(context)!.delete),
|
||||
),
|
||||
)
|
||||
),
|
||||
];
|
||||
} else {
|
||||
return [
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
|
|||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ class MessageContent extends StatelessWidget {
|
|||
event.calcLocalizedBodyFallback(
|
||||
MatrixLocals(l10n),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ class MessageDownloadContent extends StatelessWidget {
|
|||
),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class VerificationRequestContent extends StatelessWidget {
|
|||
: (started
|
||||
? L10n.of(context)!.loadingPleaseWait
|
||||
: L10n.of(context)!.newVerificationRequest)),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ class ReactionsPicker extends StatelessWidget {
|
|||
),
|
||||
onTap: () =>
|
||||
controller.pickEmojiReactionAction(allReactionEvents),
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ class SendFileDialogState extends State<SendFileDialog> {
|
|||
child: Text('${L10n.of(context)!.sendOriginal} ($sizeString)'),
|
||||
),
|
||||
],
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue