|
|
|
|
@ -23,13 +23,16 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
appBarColor: Color(0xFF1DA4AA),
|
|
|
|
|
arrowColor: Colors.white,
|
|
|
|
|
titleColor: Colors.white,
|
|
|
|
|
isAppBarGradient: true,
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
gradient: LinearGradient(
|
|
|
|
|
begin: Alignment(0.0,0.0),
|
|
|
|
|
end: Alignment(-1.5, 0.0), // 10% of the width, so there are ten blinds.
|
|
|
|
|
colors: [const Color(0xFF1DA4AA), const Color(0xFF3EB4AD)],//[const Color(0xff30B7B9), const Color(0xff3AB2AD)], // whitish to gray
|
|
|
|
|
// 10% of the width, so there are ten blinds.
|
|
|
|
|
colors: [
|
|
|
|
|
const Color(0xff45B7AE),
|
|
|
|
|
const Color(0xff119FA9)
|
|
|
|
|
], //[const Color(0xff30B7B9), const Color(0xff3AB2AD)], // whitish to gray
|
|
|
|
|
tileMode: TileMode.clamp, // repeats the gradient over the canvas
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -50,38 +53,40 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
maxRadius: 200.0,
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/driver.png',
|
|
|
|
|
height: MediaQuery.of(context).size.width * 1 ,
|
|
|
|
|
height: MediaQuery.of(context).size.width * 1,
|
|
|
|
|
width: MediaQuery.of(context).size.width * 1,
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.width *0.05,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: Text(
|
|
|
|
|
driverName,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 40,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Colors.white
|
|
|
|
|
color: Colors.white),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.width *0.05,),
|
|
|
|
|
Container(
|
|
|
|
|
child: Text(
|
|
|
|
|
'ID: ${driverID.toString()}',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 20,
|
|
|
|
|
color: Colors.white
|
|
|
|
|
),
|
|
|
|
|
style: TextStyle(fontSize: 20, color: Colors.white),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.width *0.1,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).size.width * 0.1,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 35),
|
|
|
|
|
child: Column(
|
|
|
|
|
@ -107,23 +112,26 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
size: 40,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: MediaQuery.of(context).size.width *0.05,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width:
|
|
|
|
|
MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).logout,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 18
|
|
|
|
|
),
|
|
|
|
|
fontSize: 18),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).size.width *0.05,
|
|
|
|
|
height: MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsetsDirectional.only(start: 0, end: 30),
|
|
|
|
|
margin: EdgeInsetsDirectional.only(
|
|
|
|
|
start: 0, end: 30),
|
|
|
|
|
height: 1.0,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
@ -132,7 +140,9 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.width*0.05,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
@ -147,15 +157,15 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
width:
|
|
|
|
|
MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).languageText,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 18
|
|
|
|
|
),
|
|
|
|
|
fontSize: 18),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -164,13 +174,16 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
height: 10.0,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsetsDirectional.only(start: 0, end: 30),
|
|
|
|
|
margin: EdgeInsetsDirectional.only(
|
|
|
|
|
start: 0, end: 30),
|
|
|
|
|
height: 1.0,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.width*0.05,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -188,15 +201,15 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
width:
|
|
|
|
|
MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).settings,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 18
|
|
|
|
|
),
|
|
|
|
|
fontSize: 18),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -205,13 +218,16 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
height: 10.0,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsetsDirectional.only(start: 0, end: 30),
|
|
|
|
|
margin: EdgeInsetsDirectional.only(
|
|
|
|
|
start: 0, end: 30),
|
|
|
|
|
height: 1.0,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.width*0.05,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -229,15 +245,15 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
width:
|
|
|
|
|
MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).notification,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 18
|
|
|
|
|
),
|
|
|
|
|
fontSize: 18),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -246,13 +262,16 @@ class SettingPage extends StatelessWidget {
|
|
|
|
|
height: 10.0,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsetsDirectional.only(start: 0, end: 30),
|
|
|
|
|
margin: EdgeInsetsDirectional.only(
|
|
|
|
|
start: 0, end: 30),
|
|
|
|
|
height: 1.0,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.width*0.05,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).size.width * 0.05,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|