add paginator in boxes and deliveries

This commit is contained in:
Thinzar Win
2020-10-16 17:57:58 +06:30
parent e4fbf8bd20
commit 8235f28aa8
14 changed files with 1227 additions and 64 deletions

View File

@@ -5,6 +5,8 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'delivery_info.dart';
class DeliveryListRow extends StatefulWidget {
final Box box;
const DeliveryListRow({this.box});
@@ -32,7 +34,7 @@ class _DeliveryListRowState extends State<DeliveryListRow> {
onTap: () {
Navigator.push(
context,
CupertinoPageRoute(builder: (context) => BoxEditor(box: _box)),
CupertinoPageRoute(builder: (context) => DeliveryInfo(box: _box)),
);
},
child: Row(
@@ -75,7 +77,7 @@ class _DeliveryListRowState extends State<DeliveryListRow> {
children: <Widget>[
Padding(
padding: const EdgeInsets.all(0),
child: getStatus(_box.status),
child: getStatus(_box.status == null ? "" : _box.status),
),
Padding(
padding: const EdgeInsets.only(left: 8.0, top: 5, bottom: 5),