build: Update packages and flutter super.key refactoring
This commit is contained in:
parent
4605a92d17
commit
eca4825c70
129 changed files with 294 additions and 324 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue