cleanup code

This commit is contained in:
tzw
2024-01-23 16:28:08 +06:30
parent a1e87cdbf6
commit f3f75a80c6
96 changed files with 232 additions and 439 deletions

View File

@@ -1,8 +1,6 @@
import 'package:fcs/domain/entities/cargo_type.dart';
import 'package:fcs/helpers/theme.dart';
import 'package:fcs/pages/widgets/local_text.dart';
import 'package:fcs/pages/widgets/my_data_table.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class CargoTable extends StatefulWidget {
@@ -68,7 +66,7 @@ class _CargoTableState extends State<CargoTable> {
c.name ?? "",
style: textStyle,
)),
DataCell(c.qty == null || c.qty == 0
DataCell(c.qty == 0
? Center(
child: Text(
"-",
@@ -82,8 +80,7 @@ class _CargoTableState extends State<CargoTable> {
),
)),
DataCell(
Text(c.weight == null ? "0" : c.weight.toStringAsFixed(2),
style: textStyle),
Text(c.weight.toStringAsFixed(2), style: textStyle),
),
],
);