|
|
|
|
@ -4,7 +4,8 @@ import 'package:driverapp/widgets/delivery/distance_in_kilometers.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
class CustomerBriefCard extends StatelessWidget {
|
|
|
|
|
final int itemId;
|
|
|
|
|
final int customerOrderId;
|
|
|
|
|
final int pharmacyOrderId;
|
|
|
|
|
final String time;
|
|
|
|
|
final String customerFirstName;
|
|
|
|
|
final String customerLastName;
|
|
|
|
|
@ -18,7 +19,8 @@ class CustomerBriefCard extends StatelessWidget {
|
|
|
|
|
final dynamic distanceInKilometers;
|
|
|
|
|
|
|
|
|
|
CustomerBriefCard({
|
|
|
|
|
this.itemId,
|
|
|
|
|
this.customerOrderId,
|
|
|
|
|
this.pharmacyOrderId,
|
|
|
|
|
this.time,
|
|
|
|
|
this.customerFirstName,
|
|
|
|
|
this.customerLastName,
|
|
|
|
|
@ -68,12 +70,27 @@ class CustomerBriefCard extends StatelessWidget {
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 3,
|
|
|
|
|
child: Text(
|
|
|
|
|
'ID: ${itemId}',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xff636363),
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
fontSize: 17.5),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
'Customer Order Id: ${customerOrderId}',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xff636363),
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
fontSize: 17.5),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'Pharmacy Order Id: ${pharmacyOrderId}',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xff636363),
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
fontSize: 17.5),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
|