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

@ -96,7 +96,7 @@ class ChatSettingsPopupMenuState extends State<ChatSettingsPopupMenu> {
KeyBoardShortcuts(
keysToPress: {
LogicalKeyboardKey.controlLeft,
LogicalKeyboardKey.keyI
LogicalKeyboardKey.keyI,
},
helpLabel: L10n.of(context)!.chatDetails,
onKeysPressed: _showChatDetails,

View file

@ -229,8 +229,8 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
bool webHasFocus = true;
String? get activeRoomId {
final route = FluffyChatApp.router.routeInformationProvider.value.location;
if (route == null || !route.startsWith('/rooms/')) return null;
final route = FluffyChatApp.router.routeInformationProvider.value.uri.path;
if (!route.startsWith('/rooms/')) return null;
return route.split('/')[2];
}

View file

@ -61,7 +61,7 @@ Future<int?> showPermissionChooser(
initialText: currentLevel.toString(),
keyboardType: TextInputType.number,
autocorrect: false,
)
),
],
);
if (customLevel == null) return null;