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

@ -184,7 +184,7 @@ class ChatListController extends State<ChatList>
validator: (server) => server?.contains('.') == true
? null
: L10n.of(context)!.invalidServerName,
)
),
],
);
if (newServer == null) return;

View file

@ -194,7 +194,7 @@ class ChatListView extends StatelessWidget {
floatingActionButton: KeyBoardShortcuts(
keysToPress: {
LogicalKeyboardKey.controlLeft,
LogicalKeyboardKey.keyN
LogicalKeyboardKey.keyN,
},
onKeysPressed: () => context.go('/rooms/newprivatechat'),
helpLabel: L10n.of(context)!.newChat,

View file

@ -195,7 +195,7 @@ class ClientChooserButton extends StatelessWidget {
KeyBoardShortcuts(
keysToPress: {
LogicalKeyboardKey.controlLeft,
LogicalKeyboardKey.tab
LogicalKeyboardKey.tab,
},
helpLabel: L10n.of(context)!.nextAccount,
onKeysPressed: () => _nextAccount(matrix, context),
@ -205,7 +205,7 @@ class ClientChooserButton extends StatelessWidget {
keysToPress: {
LogicalKeyboardKey.controlLeft,
LogicalKeyboardKey.shiftLeft,
LogicalKeyboardKey.tab
LogicalKeyboardKey.tab,
},
helpLabel: L10n.of(context)!.previousAccount,
onKeysPressed: () => _previousAccount(matrix, context),
@ -235,7 +235,7 @@ class ClientChooserButton extends StatelessWidget {
if (index > 0 && index < 10) {
return {
LogicalKeyboardKey.altLeft,
LogicalKeyboardKey(0x00000000030 + index)
LogicalKeyboardKey(0x00000000030 + index),
};
} else {
return null;

View file

@ -212,7 +212,7 @@ class _SpaceViewState extends State<SpaceView> {
IconButton(
onPressed: _refresh,
icon: const Icon(Icons.refresh_outlined),
)
),
],
);
}

View file

@ -331,7 +331,7 @@ class _StoryButtonState extends State<_StoryButton> {
],
),
),
]
],
],
),
),