|
|
|
|
@ -1,13 +1,15 @@
|
|
|
|
|
import 'package:driverapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:driverapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:driverapp/pages/delivery/delivery_confirmed_page.dart';
|
|
|
|
|
import 'package:driverapp/widgets/delivery/customer_brief_card.dart';
|
|
|
|
|
import 'package:driverapp/widgets/delivery/delivery_action_button.dart';
|
|
|
|
|
import 'package:driverapp/widgets/delivery/package_content.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
class InformationPage extends StatelessWidget {
|
|
|
|
|
final dynamic item;
|
|
|
|
|
|
|
|
|
|
InformationPage(this.item);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
// return AppScaffold(
|
|
|
|
|
@ -16,188 +18,200 @@ class InformationPage extends StatelessWidget {
|
|
|
|
|
// child: Texts('Replay Page')),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
return Container(
|
|
|
|
|
color: Color(0xff41bdbb),
|
|
|
|
|
child: ListView(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(right: 50),
|
|
|
|
|
child: IconButton(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
iconSize: 50,
|
|
|
|
|
icon: Icon(Icons.arrow_back),
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: Text(
|
|
|
|
|
'Delivery information',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
return Scaffold(
|
|
|
|
|
body: Container(
|
|
|
|
|
color: Color(0xff41bdbb),
|
|
|
|
|
child: ListView(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(right: 50),
|
|
|
|
|
child: IconButton(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 20,
|
|
|
|
|
iconSize: 50,
|
|
|
|
|
icon: Icon(Icons.arrow_back),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Stack(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
width: 400,
|
|
|
|
|
height: 500,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
width: 800,
|
|
|
|
|
height: 700,
|
|
|
|
|
margin: EdgeInsets.only(top: 100),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topLeft: Radius.circular(45),
|
|
|
|
|
topRight: Radius.circular(45)),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 170,
|
|
|
|
|
Container(
|
|
|
|
|
child: Text(
|
|
|
|
|
'Delivery information',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 20,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
delivery_info_button(
|
|
|
|
|
btnColor: Color(0xfff44336),
|
|
|
|
|
btnIcon: Icon(
|
|
|
|
|
Icons.near_me,
|
|
|
|
|
size: 30,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
btnName: 'Location',
|
|
|
|
|
btnFunction: () {},
|
|
|
|
|
),
|
|
|
|
|
delivery_info_button(
|
|
|
|
|
btnColor: Colors.green,
|
|
|
|
|
btnIcon: Icon(
|
|
|
|
|
Icons.whatshot,
|
|
|
|
|
size: 30,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
btnName: 'Whatsapp',
|
|
|
|
|
btnFunction: () {},
|
|
|
|
|
),
|
|
|
|
|
delivery_info_button(
|
|
|
|
|
btnColor: Colors.orangeAccent,
|
|
|
|
|
btnIcon: Icon(
|
|
|
|
|
Icons.mail_outline,
|
|
|
|
|
size: 30,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
btnName: 'SMS',
|
|
|
|
|
btnFunction: () {},
|
|
|
|
|
),
|
|
|
|
|
delivery_info_button(
|
|
|
|
|
btnColor: Color(0xff41bdbb),
|
|
|
|
|
btnIcon: Icon(
|
|
|
|
|
Icons.phone,
|
|
|
|
|
size: 30,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
btnName: 'Call',
|
|
|
|
|
btnFunction: () {},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 30,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 15, right: 15),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Stack(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
width: 400,
|
|
|
|
|
height: 500,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
width: 800,
|
|
|
|
|
height: 700,
|
|
|
|
|
margin: EdgeInsets.only(top: 100),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topLeft: Radius.circular(45),
|
|
|
|
|
topRight: Radius.circular(45)),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 170,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
'Package Content',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.bold, fontSize: 20),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
package_content(
|
|
|
|
|
packageName: 'Panadol Extra 50 tablet',
|
|
|
|
|
packageCount: '5 box',
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
package_content(
|
|
|
|
|
packageName: 'Xeractan 20MG 30 Capsules',
|
|
|
|
|
packageCount: '1 PCS',
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
package_content(
|
|
|
|
|
packageName: 'Oltment for Rash unbranded 50 ml',
|
|
|
|
|
packageCount: '1 tube',
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
package_content(
|
|
|
|
|
packageName: 'Face Mask 50 Pieces',
|
|
|
|
|
packageCount: '1 box',
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
package_content(
|
|
|
|
|
packageName: 'Panadol Extra 50 tablet',
|
|
|
|
|
packageCount: '5 box',
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
delivery_info_button(
|
|
|
|
|
btnColor: Color(0xfff44336),
|
|
|
|
|
btnIcon: Icon(
|
|
|
|
|
Icons.near_me,
|
|
|
|
|
size: 30,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
btnName: 'Location',
|
|
|
|
|
btnFunction: () {},
|
|
|
|
|
),
|
|
|
|
|
delivery_info_button(
|
|
|
|
|
btnColor: Colors.green,
|
|
|
|
|
btnIcon: Icon(
|
|
|
|
|
Icons.whatshot,
|
|
|
|
|
size: 30,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
btnName: 'Whatsapp',
|
|
|
|
|
btnFunction: () {},
|
|
|
|
|
),
|
|
|
|
|
delivery_info_button(
|
|
|
|
|
btnColor: Colors.orangeAccent,
|
|
|
|
|
btnIcon: Icon(
|
|
|
|
|
Icons.mail_outline,
|
|
|
|
|
size: 30,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
btnName: 'SMS',
|
|
|
|
|
btnFunction: () {},
|
|
|
|
|
),
|
|
|
|
|
delivery_info_button(
|
|
|
|
|
btnColor: Color(0xff41bdbb),
|
|
|
|
|
btnIcon: Icon(
|
|
|
|
|
Icons.phone,
|
|
|
|
|
size: 30,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
btnName: 'Call',
|
|
|
|
|
btnFunction: () {},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 30,
|
|
|
|
|
),
|
|
|
|
|
FlatButton(
|
|
|
|
|
color: Color(0xff41bdbb),
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
right: 100, left: 100, bottom: 15, top: 15),
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
|
borderRadius: new BorderRadius.circular(30.0),
|
|
|
|
|
side: BorderSide(color: Color(0xff41bdbb)),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 30,
|
|
|
|
|
),
|
|
|
|
|
child: Text(
|
|
|
|
|
'Client Reached',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 16),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 15, right: 15),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
'Package Content',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 20),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
package_content(
|
|
|
|
|
packageName: 'Panadol Extra 50 tablet',
|
|
|
|
|
packageCount: '5 box',
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
package_content(
|
|
|
|
|
packageName: 'Xeractan 20MG 30 Capsules',
|
|
|
|
|
packageCount: '1 PCS',
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
package_content(
|
|
|
|
|
packageName: 'Oltment for Rash unbranded 50 ml',
|
|
|
|
|
packageCount: '1 tube',
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
package_content(
|
|
|
|
|
packageName: 'Face Mask 50 Pieces',
|
|
|
|
|
packageCount: '1 box',
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
package_content(
|
|
|
|
|
packageName: 'Panadol Extra 50 tablet',
|
|
|
|
|
packageCount: '5 box',
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context, MaterialPageRoute(builder: (context) => DeliveryConfirmedPage()));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 30,
|
|
|
|
|
),
|
|
|
|
|
FlatButton(
|
|
|
|
|
color: Color(0xff41bdbb),
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
right: 100, left: 100, bottom: 15, top: 15),
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
|
borderRadius: new BorderRadius.circular(30.0),
|
|
|
|
|
side: BorderSide(color: Color(0xff41bdbb)),
|
|
|
|
|
),
|
|
|
|
|
child: Text(
|
|
|
|
|
'Client Reached',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 16),
|
|
|
|
|
),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context, MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
DeliveryConfirmedPage()));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
CustomerBrief(
|
|
|
|
|
itemId: item.driverID,
|
|
|
|
|
customerFirstName: item.firstName,
|
|
|
|
|
customerLastName: item.lastName,
|
|
|
|
|
mobileNo: item.mobileNumber
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
CustomerBrief(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|