You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
214 lines
8.9 KiB
Dart
214 lines
8.9 KiB
Dart
import 'package:driverapp/widgets/delivery/customer_brief_card.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
import '../../uitl/translations_delegate_base.dart';
|
|
import '../../widgets/others/app_scaffold_widget.dart';
|
|
|
|
class DeliveryConfirmedPage extends StatelessWidget {
|
|
final dynamic item;
|
|
|
|
DeliveryConfirmedPage(this.item);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AppScaffold(
|
|
body: SafeArea(
|
|
child: Container(
|
|
color: Color(0xff41bdbb),
|
|
child: ListView(
|
|
children: <Widget>[
|
|
Column(
|
|
children: <Widget>[
|
|
Column(
|
|
children: <Widget>[
|
|
Container(
|
|
child: Container(
|
|
alignment: Alignment.topLeft,
|
|
child: IconButton(
|
|
color: Colors.white,
|
|
iconSize: 40,
|
|
icon: Icon(Icons.arrow_back),
|
|
onPressed: () {
|
|
Navigator.pop(context);
|
|
},
|
|
),
|
|
),
|
|
),
|
|
Container(
|
|
child: Column(
|
|
children: <Widget>[
|
|
Container(
|
|
width: MediaQuery
|
|
.of(context)
|
|
.size
|
|
.width,
|
|
//300,
|
|
height: MediaQuery
|
|
.of(context)
|
|
.size
|
|
.width * 0.7,
|
|
//300,
|
|
padding: EdgeInsets.only(
|
|
top: MediaQuery
|
|
.of(context)
|
|
.size
|
|
.width * 0.2, //60,
|
|
),
|
|
decoration: BoxDecoration(
|
|
color: Colors.white10,
|
|
shape: BoxShape.circle),
|
|
child: Column(
|
|
children: <Widget>[
|
|
Icon(
|
|
Icons.check_circle,
|
|
color: Colors.white,
|
|
size: 60,
|
|
),
|
|
Text(
|
|
TranslationBase
|
|
.of(context)
|
|
.deliveryInfo,
|
|
style: TextStyle(
|
|
color: Colors.white,
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.bold),
|
|
),
|
|
Text(
|
|
TranslationBase
|
|
.of(context)
|
|
.confirmationSent,
|
|
style: TextStyle(
|
|
color: Colors.white,
|
|
fontSize: 13,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Stack(
|
|
children: <Widget>[
|
|
Container(
|
|
width: MediaQuery
|
|
.of(context)
|
|
.size
|
|
.width, //400,
|
|
height: MediaQuery
|
|
.of(context)
|
|
.size
|
|
.width, //500,
|
|
),
|
|
Container(
|
|
width: MediaQuery
|
|
.of(context)
|
|
.size
|
|
.width,
|
|
//800,
|
|
height: MediaQuery
|
|
.of(context)
|
|
.size
|
|
.width * 1.2,
|
|
//440,
|
|
margin: EdgeInsets.only(top: 60),
|
|
decoration: BoxDecoration(
|
|
color: Colors.white,
|
|
borderRadius: BorderRadius.only(
|
|
topLeft: Radius.circular(80),
|
|
topRight: Radius.circular(80)),
|
|
),
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
children: <Widget>[
|
|
Container(
|
|
margin: EdgeInsets.only(
|
|
bottom: MediaQuery
|
|
.of(context)
|
|
.size
|
|
.width * 0.15, //50
|
|
),
|
|
child: Column(
|
|
children: <Widget>[
|
|
FlatButton.icon(
|
|
padding: EdgeInsets.all(8),
|
|
color: Colors.orangeAccent,
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius:
|
|
new BorderRadius.circular(10.0),
|
|
),
|
|
icon: Icon(
|
|
Icons.mode_edit,
|
|
color: Colors.white,
|
|
),
|
|
label: Text(
|
|
TranslationBase
|
|
.of(context)
|
|
.addNoteBtn,
|
|
style: TextStyle(color: Colors.white),
|
|
),
|
|
onPressed: () {},
|
|
),
|
|
SizedBox(
|
|
height: MediaQuery
|
|
.of(context)
|
|
.size
|
|
.width * 0.1, //20,
|
|
),
|
|
FlatButton(
|
|
color: Color(0xff41bdbb),
|
|
padding:
|
|
EdgeInsets.only(
|
|
right: MediaQuery
|
|
.of(context)
|
|
.size
|
|
.width * 0.25, //100,
|
|
left: MediaQuery
|
|
.of(context)
|
|
.size
|
|
.width * 0.25, //100
|
|
),
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius:
|
|
new BorderRadius.circular(18.0),
|
|
side:
|
|
BorderSide(color: Color(0xff41bdbb)),
|
|
),
|
|
child: Text(
|
|
TranslationBase
|
|
.of(context)
|
|
.nextDelivery,
|
|
style: TextStyle(color: Colors.white),
|
|
),
|
|
onPressed: () {},
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
CustomerBrief(
|
|
itemId: item.patientID,
|
|
customerFirstName: item.firstName,
|
|
customerLastName: item.lastName,
|
|
mobileNo: item.mobileNumber,
|
|
totalPayment: item.amount,
|
|
deliveryTime: item.orderCreatedOn
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|