|
|
|
|
@ -3,9 +3,6 @@ import 'package:driverapp/uitl/utils.dart';
|
|
|
|
|
import 'package:driverapp/widgets/delivery/distance_in_kilometers.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
import '../../uitl/date_uitl.dart';
|
|
|
|
|
import '../../uitl/translations_delegate_base.dart';
|
|
|
|
|
|
|
|
|
|
class CustomerBriefCard extends StatelessWidget {
|
|
|
|
|
final int itemId;
|
|
|
|
|
final String time;
|
|
|
|
|
@ -44,7 +41,7 @@ class CustomerBriefCard extends StatelessWidget {
|
|
|
|
|
width: MediaQuery.of(context).orientation == Orientation.landscape
|
|
|
|
|
? MediaQuery.of(context).size.width * 0.9
|
|
|
|
|
: MediaQuery.of(context).size.width * 0.9,
|
|
|
|
|
height: SizeConfig.heightMultiplier * 33.0, // TODO make it responsive
|
|
|
|
|
height: SizeConfig.heightMultiplier * 30.0, // TODO make it responsive
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
@ -125,64 +122,6 @@ class CustomerBriefCard extends StatelessWidget {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10.0,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsetsDirectional.only(start: 1.0, end: 1.0),
|
|
|
|
|
height: 1.0,
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 2,
|
|
|
|
|
child: Text(
|
|
|
|
|
TranslationBase.of(context).payment,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 170,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Text(
|
|
|
|
|
totalPayment.toString(),
|
|
|
|
|
textAlign: TextAlign.end,
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.w400),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).size.width * 0.03,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: Text(
|
|
|
|
|
TranslationBase.of(context).delivryTime,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Text(
|
|
|
|
|
'${DateUtil.getMonthDayYearDateFormatted(DateUtil.convertStringToDate(deliveryTime))} ${(DateUtil.convertStringToHours(deliveryTime))}',
|
|
|
|
|
textAlign: TextAlign.end,
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.w400)),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|