check null safety

This commit is contained in:
tzw
2021-09-10 16:33:52 +06:30
parent 3eacbef117
commit d8c86a512b
46 changed files with 275 additions and 304 deletions

View File

@@ -59,7 +59,7 @@ class _CargoTableState extends State<CargoTable> {
}
double total = 0;
var rows = widget.cargoTypes!.map((c) {
total += c.weight!;
total += c.weight;
return MyDataRow(
onSelectChanged: (bool selected) async {},
cells: [
@@ -81,7 +81,7 @@ class _CargoTableState extends State<CargoTable> {
),
)),
MyDataCell(
Text(c.weight == null ? "0" : c.weight!.toStringAsFixed(2),
Text(c.weight == null ? "0" : c.weight.toStringAsFixed(2),
style: textStyle),
),
],