make driver name and ID dynamic, add translate to logout and settings label.

setting_branch
enadhilal 6 years ago
parent be8dd59c6d
commit 99a2233733

@ -44,11 +44,24 @@ class SettingPage extends StatelessWidget {
), ),
SizedBox(height: MediaQuery.of(context).size.width *0.05,), SizedBox(height: MediaQuery.of(context).size.width *0.05,),
Container( Container(
child: Text(driverName, 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: MediaQuery.of(context).size.width *0.05,), SizedBox(height: MediaQuery.of(context).size.width *0.05,),
Container( Container(
child: Text('ID: ${driverID.toString()}', style: TextStyle(fontSize: 20, color: Colors.white),), child: Text(
'ID: ${driverID.toString()}',
style: TextStyle(
fontSize: 20,
color: Colors.white
),
),
), ),
], ],
), ),
@ -73,7 +86,14 @@ class SettingPage extends StatelessWidget {
color: Colors.white, 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),), Text(
TranslationBase.of(context).logout,
style: TextStyle(
fontWeight: FontWeight.w500,
color: Colors.white,
fontSize: 18
),
),
], ],
), ),
), ),
@ -104,8 +124,17 @@ class SettingPage extends StatelessWidget {
size: 40, size: 40,
color: Colors.white, color: Colors.white,
), ),
SizedBox(width: MediaQuery.of(context).size.width * 0.05,), SizedBox(
Text(TranslationBase.of(context).settings, style: TextStyle(fontWeight: FontWeight.w500, color: Colors.white, fontSize: 18),), width: MediaQuery.of(context).size.width * 0.05,
),
Text(
TranslationBase.of(context).settings,
style: TextStyle(
fontWeight: FontWeight.w500,
color: Colors.white,
fontSize: 18
),
),
], ],
), ),
), ),

Loading…
Cancel
Save