refactor: Make layouts null safe
This commit is contained in:
parent
088424af77
commit
d3e25f84cf
6 changed files with 36 additions and 27 deletions
|
|
@ -1,3 +1,5 @@
|
|||
//@dart=2.12
|
||||
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
|
@ -5,7 +7,7 @@ import 'package:flutter/material.dart';
|
|||
class EmptyPage extends StatelessWidget {
|
||||
final bool loading;
|
||||
static const double _width = 200;
|
||||
const EmptyPage({this.loading = false, Key key}) : super(key: key);
|
||||
const EmptyPage({this.loading = false, Key? key}) : super(key: key);
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final _width = min(MediaQuery.of(context).size.width, EmptyPage._width);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue