ES-185:remove add note and payment, date

master
Elham Rababah 5 years ago
parent e6b79e9684
commit c2cae941e6

@ -132,27 +132,28 @@ class DeliveryConfirmedPage extends StatelessWidget {
: EdgeInsets.only(top: 30.0), : EdgeInsets.only(top: 30.0),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
FlatButton.icon( // TODO return add note when its needed
padding: EdgeInsets.all(14.0), // FlatButton.icon(
color: Colors.orangeAccent, // padding: EdgeInsets.all(14.0),
shape: RoundedRectangleBorder( // color: Colors.orangeAccent,
borderRadius: BorderRadius.circular(10.0), // shape: RoundedRectangleBorder(
), // borderRadius: BorderRadius.circular(10.0),
label: Text( // ),
TranslationBase.of(context).addNoteBtn, // label: Text(
style: TextStyle( // TranslationBase.of(context).addNoteBtn,
color: Colors.white, fontSize: 20.0), // style: TextStyle(
), // color: Colors.white, fontSize: 20.0),
icon: Icon( // ),
Icons.mode_edit, // icon: Icon(
color: Colors.white, // Icons.mode_edit,
), // color: Colors.white,
onPressed: () {}, // ),
), // onPressed: () {},
SizedBox( // ),
height: MediaQuery.of(context).size.width * // SizedBox(
0.00, //20, // height: MediaQuery.of(context).size.width *
), // 0.00, //20,
// ),
Padding( Padding(
padding: const EdgeInsets.only(top: 30.0), padding: const EdgeInsets.only(top: 30.0),
child: Container( child: Container(

@ -3,9 +3,6 @@ import 'package:driverapp/uitl/utils.dart';
import 'package:driverapp/widgets/delivery/distance_in_kilometers.dart'; import 'package:driverapp/widgets/delivery/distance_in_kilometers.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import '../../uitl/date_uitl.dart';
import '../../uitl/translations_delegate_base.dart';
class CustomerBriefCard extends StatelessWidget { class CustomerBriefCard extends StatelessWidget {
final int itemId; final int itemId;
final String time; final String time;
@ -44,7 +41,7 @@ class CustomerBriefCard extends StatelessWidget {
width: MediaQuery.of(context).orientation == Orientation.landscape width: MediaQuery.of(context).orientation == Orientation.landscape
? MediaQuery.of(context).size.width * 0.9 ? MediaQuery.of(context).size.width * 0.9
: 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( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
@ -125,64 +122,6 @@ class CustomerBriefCard extends StatelessWidget {
SizedBox( SizedBox(
height: 10, 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)),
),
],
)
],
),
], ],
), ),
), ),

Loading…
Cancel
Save