feat:修改鑫泓佳更多设置页面
This commit is contained in:
parent
026b439549
commit
7db613f5d7
@ -49,10 +49,20 @@ class _AboutPageState extends State<AboutPage> {
|
|||||||
builder: (AboutConsole logic) {
|
builder: (AboutConsole logic) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: AppColors.mainBackgroundColor,
|
backgroundColor: AppColors.mainBackgroundColor,
|
||||||
appBar: TitleAppBar(
|
appBar: F.sw(
|
||||||
|
defaultCall: () => TitleAppBar(
|
||||||
barTitle: TranslationLoader.lanKeys!.about!.tr,
|
barTitle: TranslationLoader.lanKeys!.about!.tr,
|
||||||
haveBack: true,
|
haveBack: true,
|
||||||
backgroundColor: AppColors.mainColor),
|
backgroundColor: AppColors.mainColor,
|
||||||
|
),
|
||||||
|
xhjCall: () => TitleAppBar(
|
||||||
|
barTitle: TranslationLoader.lanKeys!.about!.tr,
|
||||||
|
haveBack: true,
|
||||||
|
backgroundColor: Colors.white,
|
||||||
|
iconColor: AppColors.blackColor,
|
||||||
|
titleColor: AppColors.blackColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
body: Column(
|
body: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
@ -53,16 +53,44 @@ class _MineSetPageState extends State<MineSetPage> with WidgetsBindingObserver {
|
|||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: AppColors.mainBackgroundColor,
|
backgroundColor: AppColors.mainBackgroundColor,
|
||||||
appBar: TitleAppBar(
|
appBar: F.sw(
|
||||||
barTitle: TranslationLoader.lanKeys!.moreSet!.tr,
|
defaultCall: () => TitleAppBar(
|
||||||
haveBack: true,
|
barTitle: TranslationLoader.lanKeys!.moreSet!.tr,
|
||||||
backgroundColor: AppColors.mainColor),
|
haveBack: true,
|
||||||
|
backgroundColor: AppColors.mainColor,
|
||||||
|
),
|
||||||
|
xhjCall: () => TitleAppBar(
|
||||||
|
barTitle: TranslationLoader.lanKeys!.moreSet!.tr,
|
||||||
|
haveBack: true,
|
||||||
|
backgroundColor: Colors.white,
|
||||||
|
iconColor: AppColors.blackColor,
|
||||||
|
titleColor: AppColors.blackColor,
|
||||||
|
)),
|
||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
child: getListDataView(),
|
child: styleHierarchy(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//样式层级
|
||||||
|
Widget styleHierarchy() {
|
||||||
|
Widget view = getListDataView();
|
||||||
|
view = F.sw(
|
||||||
|
defaultCall: () => view,
|
||||||
|
xhjCall: () => Container(
|
||||||
|
margin: EdgeInsets.only(
|
||||||
|
top: 20.h, left: 20.w, right: 20.w, bottom: 40.h),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.white,
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(20.r))),
|
||||||
|
child: ClipRRect(
|
||||||
|
borderRadius: BorderRadius.circular(20.r),
|
||||||
|
child: view,
|
||||||
|
),
|
||||||
|
));
|
||||||
|
return view;
|
||||||
|
}
|
||||||
|
|
||||||
Widget getListDataView() {
|
Widget getListDataView() {
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
@ -283,6 +311,7 @@ class _MineSetPageState extends State<MineSetPage> with WidgetsBindingObserver {
|
|||||||
SubmitBtn(
|
SubmitBtn(
|
||||||
btnName: TranslationLoader.lanKeys!.logout!.tr,
|
btnName: TranslationLoader.lanKeys!.logout!.tr,
|
||||||
isDelete: true,
|
isDelete: true,
|
||||||
|
padding: EdgeInsets.symmetric(horizontal: 15.w),
|
||||||
onClick: () {
|
onClick: () {
|
||||||
//退出登录
|
//退出登录
|
||||||
ShowTipView().showIosTipWithContentDialog("确定要退出吗?".tr, () {
|
ShowTipView().showIosTipWithContentDialog("确定要退出吗?".tr, () {
|
||||||
|
|||||||
@ -31,6 +31,7 @@ class SubmitBtn extends StatelessWidget {
|
|||||||
bool? isDelete;
|
bool? isDelete;
|
||||||
|
|
||||||
bool? isDisabled;
|
bool? isDisabled;
|
||||||
|
|
||||||
SubmitBtn({
|
SubmitBtn({
|
||||||
Key? key,
|
Key? key,
|
||||||
required this.btnName,
|
required this.btnName,
|
||||||
@ -48,9 +49,10 @@ class SubmitBtn extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return SizedBox(
|
return Container(
|
||||||
width: ScreenUtil().screenWidth - 40.w,
|
width: ScreenUtil().screenWidth - 40.w,
|
||||||
height: 60.h,
|
height: 60.h,
|
||||||
|
padding: padding,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
backgroundColor: isDisabled == false
|
backgroundColor: isDisabled == false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user