|
|
|
|
@ -5,6 +5,10 @@ import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SettingPage extends StatelessWidget {
|
|
|
|
|
final String driverName;//_authenticationViewModel.user.userName
|
|
|
|
|
final int driverID;
|
|
|
|
|
|
|
|
|
|
SettingPage({this.driverName, this.driverID});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -31,25 +35,25 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
maxRadius: 200.0,
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/driver.png',
|
|
|
|
|
height: 280,
|
|
|
|
|
width: 280,
|
|
|
|
|
height: MediaQuery.of(context).size.width * 1 ,
|
|
|
|
|
width: MediaQuery.of(context).size.width * 1,
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 10,),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.width *0.05,),
|
|
|
|
|
Container(
|
|
|
|
|
child: Text('Driver Name', style: TextStyle(fontSize: 40, fontWeight: FontWeight.w600, color: Colors.white),),
|
|
|
|
|
child: Text(driverName, style: TextStyle(fontSize: 40, fontWeight: FontWeight.w600, color: Colors.white),),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 10,),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.width *0.05,),
|
|
|
|
|
Container(
|
|
|
|
|
child: Text('ID: 123456789', style: TextStyle(fontSize: 20, color: Colors.white),),
|
|
|
|
|
child: Text('ID: ${driverID.toString()}', style: TextStyle(fontSize: 20, color: Colors.white),),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 50,),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.width *0.1,),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 35),
|
|
|
|
|
child: Column(
|
|
|
|
|
@ -68,13 +72,13 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
size: 40,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 20,),
|
|
|
|
|
Text('Log out', style: TextStyle(fontWeight: FontWeight.w500, color: Colors.white, fontSize: 18),),
|
|
|
|
|
SizedBox(width: MediaQuery.of(context).size.width *0.05,),
|
|
|
|
|
Text(TranslationBase.of(context).logout, style: TextStyle(fontWeight: FontWeight.w500, color: Colors.white, fontSize: 18),),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10.0,
|
|
|
|
|
height: MediaQuery.of(context).size.width *0.05,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsetsDirectional.only(start: 0, end: 30),
|
|
|
|
|
@ -86,7 +90,7 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 8,),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.width*0.05,),
|
|
|
|
|
InkWell(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
@ -100,8 +104,8 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
size: 40,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 20,),
|
|
|
|
|
Text('Settings', style: TextStyle(fontWeight: FontWeight.w500, color: Colors.white, fontSize: 18),),
|
|
|
|
|
SizedBox(width: MediaQuery.of(context).size.width * 0.05,),
|
|
|
|
|
Text(TranslationBase.of(context).settings, style: TextStyle(fontWeight: FontWeight.w500, color: Colors.white, fontSize: 18),),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -115,6 +119,7 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.width*0.05,),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|