refactor: Make layouts null safe

This commit is contained in:
Krille Fear 2021-11-19 20:28:17 +01:00
commit d3e25f84cf
6 changed files with 36 additions and 27 deletions

View file

@ -1,9 +1,11 @@
//@dart=2.12
import 'dart:math';
import 'package:flutter/material.dart';
class MaxWidthBody extends StatelessWidget {
final Widget child;
final Widget? child;
final double maxWidth;
final bool withScrolling;
@ -11,7 +13,7 @@ class MaxWidthBody extends StatelessWidget {
this.child,
this.maxWidth = 600,
this.withScrolling = false,
Key key,
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {