更新登录页面布局
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user