build: Update packages and flutter super.key refactoring

This commit is contained in:
krille-chan 2023-10-28 13:03:16 +02:00
commit eca4825c70
No known key found for this signature in database
129 changed files with 294 additions and 324 deletions

View file

@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
class EmptyPage extends StatelessWidget {
final bool loading;
static const double _width = 300;
const EmptyPage({this.loading = false, Key? key}) : super(key: key);
const EmptyPage({this.loading = false, super.key});
@override
Widget build(BuildContext context) {
final width = min(MediaQuery.of(context).size.width, EmptyPage._width) / 2;

View file

@ -13,11 +13,11 @@ class LoginScaffold extends StatelessWidget {
final bool enforceMobileMode;
const LoginScaffold({
Key? key,
super.key,
required this.body,
this.appBar,
this.enforceMobileMode = false,
}) : super(key: key);
});
@override
Widget build(BuildContext context) {

View file

@ -15,8 +15,8 @@ class MaxWidthBody extends StatelessWidget {
this.maxWidth = 600,
this.withFrame = true,
this.withScrolling = true,
Key? key,
}) : super(key: key);
super.key,
});
@override
Widget build(BuildContext context) {
return SafeArea(

View file

@ -6,11 +6,11 @@ class TwoColumnLayout extends StatelessWidget {
final bool displayNavigationRail;
const TwoColumnLayout({
Key? key,
super.key,
required this.mainView,
required this.sideView,
required this.displayNavigationRail,
}) : super(key: key);
});
@override
Widget build(BuildContext context) {
return ScaffoldMessenger(