|
|
|
@@ -63,69 +63,73 @@ class _AccountScreenState extends State<AccountScreen> { |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return Scaffold( |
|
|
|
backgroundColor: Colors.white, |
|
|
|
body: Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: <Widget>[ |
|
|
|
SizedBox( |
|
|
|
height: 8, |
|
|
|
), |
|
|
|
Container( |
|
|
|
padding: EdgeInsets.all(8), |
|
|
|
color: Colors.white, |
|
|
|
child: Text( |
|
|
|
'Cá nhân', |
|
|
|
style: TextStyle(fontWeight: FontWeight.w500, fontSize: 22), |
|
|
|
)), |
|
|
|
Expanded( |
|
|
|
child: Column(children: [ |
|
|
|
ButtonIconWidget( |
|
|
|
title: 'Tài khoản', |
|
|
|
leadingIcon: AppIcons.icUser, |
|
|
|
trailingIcon: AppIcons.icArrowRight, |
|
|
|
isTopBorder: false, |
|
|
|
onTap: () { |
|
|
|
Get.to(UpdateProfileScreen()); |
|
|
|
}), |
|
|
|
ButtonIconWidget( |
|
|
|
title: 'Bảo mật', |
|
|
|
leadingIcon: AppIcons.icSecurity, |
|
|
|
trailingIcon: AppIcons.icArrowRight, |
|
|
|
isTopBorder: false, |
|
|
|
isBottomBorder: false, |
|
|
|
onTap: () { |
|
|
|
Get.to(ChangePasswordScreen()); |
|
|
|
}), |
|
|
|
Container( |
|
|
|
width: double.infinity, |
|
|
|
height: 20, |
|
|
|
color: Colors.grey[200], |
|
|
|
body: SafeArea( |
|
|
|
child: Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: <Widget>[ |
|
|
|
SizedBox( |
|
|
|
height: 8, |
|
|
|
), |
|
|
|
Container( |
|
|
|
padding: EdgeInsets.only(left: 12, right: 8, top: 14, bottom: 14), |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
Expanded( |
|
|
|
child: Text( |
|
|
|
'Phiên bản', |
|
|
|
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w100), |
|
|
|
)), |
|
|
|
Text("${_packageInfo.version}.${_packageInfo.buildNumber}") |
|
|
|
], |
|
|
|
padding: EdgeInsets.all(8), |
|
|
|
color: Colors.white, |
|
|
|
child: Text( |
|
|
|
'Cá nhân', |
|
|
|
style: TextStyle(fontWeight: FontWeight.w500, fontSize: 22), |
|
|
|
)), |
|
|
|
Expanded( |
|
|
|
child: Column(children: [ |
|
|
|
ButtonIconWidget( |
|
|
|
title: 'Tài khoản', |
|
|
|
leadingIcon: AppIcons.icUser, |
|
|
|
trailingIcon: AppIcons.icArrowRight, |
|
|
|
isTopBorder: false, |
|
|
|
onTap: () { |
|
|
|
Get.to(UpdateProfileScreen()); |
|
|
|
}), |
|
|
|
ButtonIconWidget( |
|
|
|
title: 'Bảo mật', |
|
|
|
leadingIcon: AppIcons.icSecurity, |
|
|
|
trailingIcon: AppIcons.icArrowRight, |
|
|
|
isTopBorder: false, |
|
|
|
isBottomBorder: false, |
|
|
|
onTap: () { |
|
|
|
Get.to(ChangePasswordScreen()); |
|
|
|
}), |
|
|
|
Container( |
|
|
|
width: double.infinity, |
|
|
|
height: 20, |
|
|
|
color: Colors.grey[200], |
|
|
|
), |
|
|
|
), |
|
|
|
ButtonIconWidget( |
|
|
|
title: 'Đăng xuất', |
|
|
|
titleStyle: TextStyle( |
|
|
|
fontSize: 16, |
|
|
|
fontWeight: FontWeight.w100, |
|
|
|
color: Colors.red), |
|
|
|
leadingIcon: AppIcons.icLogout, |
|
|
|
trailingIcon: AppIcons.icArrowRight, |
|
|
|
onTap: () { |
|
|
|
_clickSignOut(); |
|
|
|
}), |
|
|
|
])), |
|
|
|
], |
|
|
|
Container( |
|
|
|
padding: |
|
|
|
EdgeInsets.only(left: 12, right: 8, top: 14, bottom: 14), |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
Expanded( |
|
|
|
child: Text( |
|
|
|
'Phiên bản', |
|
|
|
style: |
|
|
|
TextStyle(fontSize: 16, fontWeight: FontWeight.w100), |
|
|
|
)), |
|
|
|
Text("${_packageInfo.version}.${_packageInfo.buildNumber}") |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
ButtonIconWidget( |
|
|
|
title: 'Đăng xuất', |
|
|
|
titleStyle: TextStyle( |
|
|
|
fontSize: 16, |
|
|
|
fontWeight: FontWeight.w100, |
|
|
|
color: Colors.red), |
|
|
|
leadingIcon: AppIcons.icLogout, |
|
|
|
trailingIcon: AppIcons.icArrowRight, |
|
|
|
onTap: () { |
|
|
|
_clickSignOut(); |
|
|
|
}), |
|
|
|
])), |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
} |