|
|
|
|
@ -102,14 +102,18 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/driver.png',
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
),),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
SettingPage(driverName:_authenticationViewModel.user.userName, driverID:_authenticationViewModel.user.userID)));
|
|
|
|
|
builder: (context) => SettingPage(
|
|
|
|
|
driverName: _authenticationViewModel
|
|
|
|
|
.user.userName,
|
|
|
|
|
driverID: _authenticationViewModel
|
|
|
|
|
.user.userID)));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
@ -279,7 +283,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'5',
|
|
|
|
|
'3',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize:
|
|
|
|
|
@ -288,7 +292,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.undeliveredPackages,
|
|
|
|
|
.deliveredPackages,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: MediaQuery.of(context)
|
|
|
|
|
@ -360,22 +364,11 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
_scanQrAndGetPatient(context, model);
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
height: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.orientation ==
|
|
|
|
|
height: MediaQuery.of(context).orientation ==
|
|
|
|
|
Orientation.portrait
|
|
|
|
|
? MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height * 0.18
|
|
|
|
|
: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height * 0.30,
|
|
|
|
|
width: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width * 0.50,
|
|
|
|
|
? MediaQuery.of(context).size.height * 0.18
|
|
|
|
|
: MediaQuery.of(context).size.height * 0.30,
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.50,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(15.0),
|
|
|
|
|
gradient: LinearGradient(
|
|
|
|
|
@ -414,12 +407,9 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(top: 8.0),
|
|
|
|
|
child: Text(
|
|
|
|
|
TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.scan,
|
|
|
|
|
TranslationBase.of(context).scan,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
fontSize: MediaQuery.of(context)
|
|
|
|
|
.orientation ==
|
|
|
|
|
Orientation.landscape
|
|
|
|
|
? SizeConfig.textMultiplier * 6.0
|
|
|
|
|
@ -432,12 +422,10 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(top: 0.0),
|
|
|
|
|
child: Text(
|
|
|
|
|
TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.toAddPackageToQue,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
fontSize: MediaQuery.of(context)
|
|
|
|
|
.orientation ==
|
|
|
|
|
Orientation.landscape
|
|
|
|
|
? SizeConfig.textMultiplier * 3.0
|
|
|
|
|
@ -465,8 +453,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).nearestDropOffs,
|
|
|
|
|
Text(TranslationBase.of(context).nearestDropOffs,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 18.0,
|
|
|
|
|
color: Hexcolor("#343333"),
|
|
|
|
|
@ -492,8 +479,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
onTap: () =>
|
|
|
|
|
Navigator.push(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => OrdersListScreen()),
|
|
|
|
|
@ -521,18 +507,10 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: RoundedContainer(
|
|
|
|
|
showShadow: true,
|
|
|
|
|
raduis: 25.0,
|
|
|
|
|
height: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.orientation ==
|
|
|
|
|
height: MediaQuery.of(context).orientation ==
|
|
|
|
|
Orientation.portrait
|
|
|
|
|
? MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height * 0.120
|
|
|
|
|
: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height * 0.209,
|
|
|
|
|
? MediaQuery.of(context).size.height * 0.120
|
|
|
|
|
: MediaQuery.of(context).size.height * 0.209,
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
|
@ -550,31 +528,25 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
left: 15.0, top: 14.0),
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/location.png',
|
|
|
|
|
height: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
height: MediaQuery.of(context)
|
|
|
|
|
.orientation ==
|
|
|
|
|
Orientation.portrait
|
|
|
|
|
? MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
? MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height *
|
|
|
|
|
0.06
|
|
|
|
|
: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
: MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height *
|
|
|
|
|
0.11,
|
|
|
|
|
width: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
width: MediaQuery.of(context)
|
|
|
|
|
.orientation ==
|
|
|
|
|
Orientation.portrait
|
|
|
|
|
? MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
? MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width *
|
|
|
|
|
0.05
|
|
|
|
|
: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
: MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width *
|
|
|
|
|
0.09,
|
|
|
|
|
@ -672,4 +644,3 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|