|
|
|
|
@ -42,8 +42,11 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
'Have a great day ,',
|
|
|
|
|
style: TextStyle(fontSize: 12.5),
|
|
|
|
|
'Have a great day,',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 14.5,
|
|
|
|
|
color: Color(0xff636363),
|
|
|
|
|
fontWeight: FontWeight.w300),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(top: 4.5),
|
|
|
|
|
@ -94,7 +97,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
height: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height * 0.15,
|
|
|
|
|
.height * 0.16,
|
|
|
|
|
width: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
@ -107,59 +110,64 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.all(10.0),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(2.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
'You Have',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white, fontSize: 10.0),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'5',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white, fontSize: 25.0),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Text(
|
|
|
|
|
'Undelivered \n Packages',
|
|
|
|
|
MainAxisAlignment.spaceEvenly,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
'You Have',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 10.0),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
Text(
|
|
|
|
|
'5',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 25.0),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'Undeliverd\nPackages',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white, fontSize: 9.5),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(4.0),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(right: 9.5),
|
|
|
|
|
child: Container(
|
|
|
|
|
width: 110,
|
|
|
|
|
height: 110,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white10,
|
|
|
|
|
shape: BoxShape.circle),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(right: 9.5),
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/images/closed_box.png',
|
|
|
|
|
height: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height *
|
|
|
|
|
0.09,
|
|
|
|
|
0.10,
|
|
|
|
|
width: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width *
|
|
|
|
|
0.20,
|
|
|
|
|
//fit: BoxFit.cover,
|
|
|
|
|
)),
|
|
|
|
|
scale: 0.9,
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -167,27 +175,28 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
child: Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.15,
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
child: Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.16,
|
|
|
|
|
width: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width * 0.44,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(15.0),
|
|
|
|
|
gradient: LinearGradient(
|
|
|
|
|
colors: [Color(0xff17AFB8), Color(0xff49C1BC)]),
|
|
|
|
|
),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
|
.width * 0.45,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(15.0),
|
|
|
|
|
gradient: LinearGradient(
|
|
|
|
|
colors: [Color(0xff17AFB8), Color(0xff49C1BC)]),
|
|
|
|
|
),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(2.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.spaceEvenly,
|
|
|
|
|
@ -202,40 +211,48 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white, fontSize: 25.0),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Text(
|
|
|
|
|
'unWanted\n Packge',
|
|
|
|
|
Text(
|
|
|
|
|
'Succesful\nDeliveries',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 10.0),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(right: 9.5),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/images/open_box.png',
|
|
|
|
|
height: MediaQuery.of(context).size.height *
|
|
|
|
|
0.10,
|
|
|
|
|
width: MediaQuery.of(context).size.width *
|
|
|
|
|
0.20,
|
|
|
|
|
scale: 0.9,
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(right: 9.5),
|
|
|
|
|
child: Container(
|
|
|
|
|
width: 110,
|
|
|
|
|
height: 110,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white10,
|
|
|
|
|
shape: BoxShape.circle),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/images/opend_box.png',
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery.of(context).size.height *
|
|
|
|
|
0.10,
|
|
|
|
|
width:
|
|
|
|
|
MediaQuery.of(context).size.width *
|
|
|
|
|
0.20,
|
|
|
|
|
scale: 0.9,
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -249,7 +266,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
height: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height * 0.16,
|
|
|
|
|
.height * 0.18,
|
|
|
|
|
width: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
@ -272,13 +289,13 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width * 0.25,
|
|
|
|
|
.width * 0.26,
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height * 0.14,
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -293,7 +310,9 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: Text(
|
|
|
|
|
'SCAN',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 35.0, color: Colors.white),
|
|
|
|
|
fontSize: 35.0,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.w400),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
@ -319,7 +338,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 12.0, vertical: 1.0),
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 20.0, vertical: 1.0),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
@ -342,11 +361,13 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
'See All',
|
|
|
|
|
style: TextStyle(fontSize: 14.5),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 14.5, color: Color(0xff42B6AD)),
|
|
|
|
|
),
|
|
|
|
|
Icon(
|
|
|
|
|
Icons.arrow_forward_ios,
|
|
|
|
|
size: 15.0,
|
|
|
|
|
color: Color(0xff42B6AD),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -364,8 +385,8 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
|
itemCount: model.orders == null ? 0 : model.orders.length,
|
|
|
|
|
// 2,
|
|
|
|
|
itemCount: //model.orders == null ? 0 : model.orders.length,
|
|
|
|
|
3,
|
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 12.2),
|
|
|
|
|
@ -374,7 +395,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
height: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height * 0.108,
|
|
|
|
|
.height * 0.109,
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
@ -384,20 +405,15 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(left: 22.0),
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
left: 10.0, bottom: 5.0),
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/location.png',
|
|
|
|
|
height:
|
|
|
|
|
MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height *
|
|
|
|
|
0.10,
|
|
|
|
|
width: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width *
|
|
|
|
|
0.09,
|
|
|
|
|
MediaQuery.of(context).size.height *
|
|
|
|
|
0.06,
|
|
|
|
|
width: MediaQuery.of(context).size.width *
|
|
|
|
|
0.05,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
@ -428,7 +444,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Text(
|
|
|
|
|
'Olaya ST, Behind kfc next to king ,',
|
|
|
|
|
'Olaya ST, Behind kfc next to king , ',
|
|
|
|
|
style: TextStyle(color: Colors.black45),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -453,8 +469,8 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
'3 K.m \n away',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xff30B7B9),
|
|
|
|
|
fontSize: 12.5,
|
|
|
|
|
fontWeight: FontWeight.w600),
|
|
|
|
|
fontSize: 10.5,
|
|
|
|
|
fontWeight: FontWeight.w400),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -477,7 +493,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|