add paginator

This commit is contained in:
Sai Naw Wun
2020-10-16 10:58:31 +06:30
parent bcbcfd71ee
commit 0abe4ef73f
29 changed files with 953 additions and 703 deletions

View File

@@ -93,7 +93,7 @@ class _BoxEditorState extends State<BoxEditor> {
if (widget.box != null) {
_box = widget.box;
_deliveryAddress = _box.shippingAddress;
_deliveryAddress = _box.deliveryAddress;
_cargoTypes = _box.cargoTypes;
_selectShipmentNumber = _box.shipmentNumber;
_widthController.text = _box.width.toString();
@@ -397,7 +397,7 @@ class _BoxEditorState extends State<BoxEditor> {
if (_cargoTypes == null) {
return [];
}
int total = 0;
double total = 0;
var rows = _cargoTypes.asMap().entries.map((c) {
total += c.value.weight;