更新登录页面布局

This commit is contained in:
wyf
2025-06-27 11:01:34 +08:00
parent 6d1d01edc6
commit 6e2875c6d8
2 changed files with 40 additions and 22 deletions

View File

@@ -382,7 +382,7 @@ var returnIconButtom = IconButton(
var returnIconButtomNew = ClickableContainer(
backgroundColor: Colors.transparent,
highlightColor: Colors.transparent,
padding: EdgeInsets.only(right: 0),
padding: EdgeInsets.fromLTRB(20.rpx, 20.rpx, 20.rpx, 20.rpx),
onTap: () => Get.back(),
child: Container(
// height: 42.rpx,

View File

@@ -144,7 +144,7 @@ class MHTLoginPage extends GetView<MHTLoginController> {
),
child: Scaffold(
backgroundColor: Colors.transparent,
resizeToAvoidBottomInset: true,
resizeToAvoidBottomInset: false,
appBar: AppBar(
backgroundColor: Colors.transparent,
automaticallyImplyLeading: false,
@@ -165,7 +165,7 @@ class MHTLoginPage extends GetView<MHTLoginController> {
// ),
// ),
Positioned(
left: 20.rpx,
left: 0.rpx,
child: returnIconButtomNew,
),
],
@@ -174,8 +174,6 @@ class MHTLoginPage extends GetView<MHTLoginController> {
actions: [],
centerTitle: false,
),
// key: scaffoldKey,
body: PopScope(
canPop: false,
onPopInvokedWithResult: (disposition, result) async {
@@ -200,15 +198,18 @@ class MHTLoginPage extends GetView<MHTLoginController> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisSize: MainAxisSize.max,
children: [
SizedBox(
height: 50.rpx,
),
Expanded(
child: Align(
alignment: AlignmentDirectional(0, 0),
child: Container(
decoration: BoxDecoration(),
child: Container(
width: bodysize!.maxWidth,
decoration: BoxDecoration(),
child: Container(
width: bodysize!.maxWidth,
decoration: BoxDecoration(),
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
mainAxisSize: MainAxisSize.max,
children: [
Obx(() {
@@ -1683,27 +1684,44 @@ class MHTLoginPage extends GetView<MHTLoginController> {
InkWell(
onTap: () {
Get.toNamed(
"/findPasswordPage");
"/registerPage");
},
child: Text(
'找回密码'.tr,
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor(
"#84F5FF"),
fontSize: AppFontsize
.small_text_size,
letterSpacing: 0,
child: Text.rich(
TextSpan(
children: [
TextSpan(
text: "还没有账号? ".tr,
style: TextStyle(
color: Colors
.white, // 设置"还没有账号?"为白色
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.small_text_size,
),
),
TextSpan(
text: '前往注册'.tr,
style: TextStyle(
color: stringToColor(
"#84F5FF"), // 保持"前往注册"为指定颜色
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.small_text_size,
),
),
],
),
),
),
InkWell(
onTap: () {
Get.toNamed(
"/registerPage");
"/findPasswordPage");
},
child: Text(
'注册'.tr,
'找回密码 '.tr,
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor(