update the item ID and change the icon , icon label, remove description and fix the stack issue in delivery_confirmed.

setting_branch
enadhilal 6 years ago
parent c5cb40fdb4
commit 1f6acfcb5d

@ -23,7 +23,7 @@ class DeliveryConfirmedPage extends StatelessWidget {
color: Theme.of(context).primaryColor, color: Theme.of(context).primaryColor,
child: ListView( child: ListView(
children: <Widget>[ children: <Widget>[
Column( Stack(
children: <Widget>[ children: <Widget>[
Column( Column(
children: <Widget>[ children: <Widget>[
@ -34,12 +34,10 @@ class DeliveryConfirmedPage extends StatelessWidget {
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.width * 0.7, height: MediaQuery.of(context).size.width * 0.7,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: MediaQuery.of(context).size.width * top: MediaQuery.of(context).size.width * 0.12,
0.12,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white10, color: Colors.white10, shape: BoxShape.circle),
shape: BoxShape.circle),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Icon( Icon(
@ -47,9 +45,10 @@ class DeliveryConfirmedPage extends StatelessWidget {
color: Colors.white, color: Colors.white,
size: 75, size: 75,
), ),
SizedBox(
SizedBox(height: MediaQuery.of(context).size.width * 0.03,), height:
MediaQuery.of(context).size.width * 0.03,
),
Text( Text(
TranslationBase.of(context).deliveryInfo, TranslationBase.of(context).deliveryInfo,
style: TextStyle( style: TextStyle(
@ -57,12 +56,12 @@ class DeliveryConfirmedPage extends StatelessWidget {
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold), fontWeight: FontWeight.bold),
), ),
SizedBox(
SizedBox(height: MediaQuery.of(context).size.width * 0.03,), height:
MediaQuery.of(context).size.width * 0.03,
),
Text( Text(
TranslationBase.of(context) TranslationBase.of(context).confirmationSent,
.confirmationSent,
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 13, fontSize: 13,
@ -76,16 +75,16 @@ class DeliveryConfirmedPage extends StatelessWidget {
), ),
], ],
), ),
Stack(
children: <Widget>[
Container( Container(
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.width, height: MediaQuery.of(context).size.width,
), ),
Container( Container(
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.width * 1.2, height: MediaQuery.of(context).size.width * 1.0,
margin: EdgeInsets.only(top: 60), margin: EdgeInsets.only(
top: MediaQuery.of(context).size.width * 0.75,
),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
@ -98,7 +97,7 @@ class DeliveryConfirmedPage extends StatelessWidget {
children: <Widget>[ children: <Widget>[
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
bottom: MediaQuery.of(context).size.width * 0.15, bottom: MediaQuery.of(context).size.width * 0.09,
), ),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
@ -106,8 +105,7 @@ class DeliveryConfirmedPage extends StatelessWidget {
padding: EdgeInsets.all(8), padding: EdgeInsets.all(8),
color: Colors.orangeAccent, color: Colors.orangeAccent,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: borderRadius: new BorderRadius.circular(10.0),
new BorderRadius.circular(10.0),
), ),
label: Text( label: Text(
TranslationBase.of(context).addNoteBtn, TranslationBase.of(context).addNoteBtn,
@ -120,14 +118,13 @@ class DeliveryConfirmedPage extends StatelessWidget {
onPressed: () {}, onPressed: () {},
), ),
SizedBox( SizedBox(
height: MediaQuery.of(context).size.width * height:
0.1, //20, MediaQuery.of(context).size.width * 0.02, //20,
), ),
Container( Container(
margin: EdgeInsets.all(10), margin: EdgeInsets.all(10),
child: SecondaryButton( child: SecondaryButton(
label: TranslationBase.of(context) label: TranslationBase.of(context).nextDelivery,
.nextDelivery,
onTap: () {}, onTap: () {},
), ),
), ),
@ -137,15 +134,18 @@ class DeliveryConfirmedPage extends StatelessWidget {
], ],
), ),
), ),
CustomerBriefCard( Container(
itemId: item.patientID, margin: EdgeInsets.only(
top: MediaQuery.of(context).size.width * 0.6,
),
child: CustomerBriefCard(
itemId: item.orderID,
customerFirstName: item.firstName, customerFirstName: item.firstName,
customerLastName: item.lastName, customerLastName: item.lastName,
mobileNo: item.mobileNumber, mobileNo: item.mobileNumber,
totalPayment: item.amount, totalPayment: item.amount,
showDistance: false, showDistance: false,
deliveryTime: item.orderCreatedOn), deliveryTime: item.orderCreatedOn),
],
), ),
], ],
), ),

File diff suppressed because one or more lines are too long

@ -4,7 +4,7 @@ import '../../uitl/date_uitl.dart';
import '../../uitl/translations_delegate_base.dart'; import '../../uitl/translations_delegate_base.dart';
class CustomerBriefCard extends StatelessWidget { class CustomerBriefCard extends StatelessWidget {
final String itemId; final int itemId;
final String time; final String time;
final String customerFirstName; final String customerFirstName;
final String customerLastName; final String customerLastName;
@ -102,13 +102,13 @@ class CustomerBriefCard extends StatelessWidget {
style: TextStyle(color: Color(0xFF50BDC5)), style: TextStyle(color: Color(0xFF50BDC5)),
), ),
SizedBox( SizedBox(
height:MediaQuery.of(context).size.width*0.05, height:MediaQuery.of(context).size.width*0.005,
),
Text(
'Olaya street, behind KFC resturant, next to kingdom towers 2nd floor ofice 277',
style: TextStyle(
color: Color(0xFF464748), fontWeight: FontWeight.w600),
), ),
// Text(
// 'Olaya street, behind KFC resturant, next to kingdom towers 2nd floor ofice 277',
// style: TextStyle(
// color: Color(0xFF464748), fontWeight: FontWeight.w600),
// ),
SizedBox( SizedBox(
height: 10, height: 10,
), ),

@ -24,22 +24,13 @@ class DeliveryInfoButton extends StatelessWidget {
.of(context) .of(context)
.size .size
.width * 0.165, // specific value .width * 0.165, // specific value
child: RaisedButton( child:
padding: EdgeInsets.only(left: 2), InkWell(
color: btnColor,
shape: RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(8.0),
),
child: btnIcon, child: btnIcon,
onPressed: btnFunction, onTap: btnFunction,
), ),
), ),
SizedBox(
height: MediaQuery
.of(context)
.size
.width * 0.05,
),
Text( Text(
btnName, btnName,
style: TextStyle( style: TextStyle(

Loading…
Cancel
Save