update carton and cargo type
This commit is contained in:
@@ -7,17 +7,16 @@ import 'package:intl/intl.dart';
|
||||
|
||||
import 'processing_info.dart';
|
||||
|
||||
typedef CallbackPackageSelect(Package package);
|
||||
typedef CallbackPackageSelect = Function(Package package);
|
||||
|
||||
class ProcessingListRow extends StatelessWidget {
|
||||
final Package package;
|
||||
final CallbackPackageSelect? callbackPackageSelect;
|
||||
final double dotSize = 15.0;
|
||||
final DateFormat dateFormat = new DateFormat("dd MMM yyyy");
|
||||
final DateFormat dateFormat = DateFormat("dd MMM yyyy");
|
||||
|
||||
ProcessingListRow(
|
||||
{Key? key, required this.package, this.callbackPackageSelect})
|
||||
: super(key: key);
|
||||
{super.key, required this.package, this.callbackPackageSelect});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -38,30 +37,30 @@ class ProcessingListRow extends StatelessWidget {
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Expanded(
|
||||
child: new Padding(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 13.0),
|
||||
child: new Row(
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Icon(FontAwesome.dropbox, color: primaryColor, size: 30),
|
||||
new Expanded(
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 15),
|
||||
child: new Column(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
new Text(
|
||||
Text(
|
||||
package.trackingID == null
|
||||
? ''
|
||||
: package.trackingID!,
|
||||
style: new TextStyle(
|
||||
style: TextStyle(
|
||||
fontSize: 15.0, color: Colors.black),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 5.0),
|
||||
child: new Text(
|
||||
child: Text(
|
||||
package.market == null ? '' : package.market!,
|
||||
style: new TextStyle(
|
||||
fontSize: 15.0, color: Colors.black),
|
||||
style: TextStyle(
|
||||
fontSize: 15.0, color: Colors.grey),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -82,11 +81,11 @@ class ProcessingListRow extends StatelessWidget {
|
||||
fontWeight: FontWeight.bold)),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 5),
|
||||
child: new Text(
|
||||
child: Text(
|
||||
package.currentStatusDate != null
|
||||
? dateFormat.format(package.currentStatusDate!)
|
||||
: '',
|
||||
style: new TextStyle(fontSize: 14.0, color: Colors.grey),
|
||||
style: TextStyle(fontSize: 14.0, color: Colors.grey),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user