import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; import 'package:star_lock/flavors.dart'; import 'package:star_lock/mine/minePersonInfo/minePersonInfoEditAccount/minePersonInfoEditAccountNext/minePersonInfoEditAccountNext_logic.dart'; import 'package:star_lock/mine/minePersonInfo/minePersonInfoEditAccount/minePersonInfoEditAccountNext/minePersonInfoEditAccountNext_state.dart'; import '../../../../app_settings/app_colors.dart'; import '../../../../tools/submitBtn.dart'; import '../../../../tools/tf_input_haveBorder.dart'; import '../../../../tools/titleAppBar.dart'; class MinePersonInfoEditAccountNextPage extends StatefulWidget { const MinePersonInfoEditAccountNextPage({Key? key}) : super(key: key); @override State createState() => _MinePersonInfoEditAccountNextPageState(); } class _MinePersonInfoEditAccountNextPageState extends State { final PersonInfoEditAccountLogic logic = Get.put(PersonInfoEditAccountLogic()); final PersonInfoEditAccountState state = Get.find().state; @override Widget build(BuildContext context) { return Scaffold( backgroundColor: AppColors.mainBackgroundColor, appBar: F.sw( skyCall: () => TitleAppBar( barTitle: '修改账号'.tr, haveBack: true, backgroundColor: AppColors.mainColor, ), xhjCall: () => TitleAppBar( barTitle: '修改账号'.tr, haveBack: true, backgroundColor: Colors.white, iconColor: AppColors.blackColor, titleColor: AppColors.blackColor, ), ), body: Column( children: [ Container( width: 1.sw, // color: Colors.grey, padding: EdgeInsets.only(left: 30.w, top: 15.h, bottom: 15.h), child: Text( '请输入新账号'.tr, style: TextStyle(fontWeight: FontWeight.w600, fontSize: 24.sp), )), Container( height: 100.h, padding: EdgeInsets.only( left: 30.w, right: 30.w, top: 10.h, bottom: 10.h), child: TFInputHaveBorder( controller: state.accountController, label: '请输入手机号或者邮箱'.tr, ), ), Container( padding: EdgeInsets.only( left: 30.w, right: 30.w, top: 20.h, bottom: 10.h), child: TFInputHaveBorder( controller: state.codeController, label: '请输入验证码'.tr, rightSlot: GestureDetector( child: Container( width: 180.w, height: 90.h, padding: EdgeInsets.all(5.h), margin: EdgeInsets.only(right: 10.w), // decoration: BoxDecoration( // color: AppColors.mainColor, // borderRadius: BorderRadius.circular(5) // ), child: Center( child: Text( '获取验证码'.tr, textAlign: TextAlign.center, style: TextStyle( color: Colors.grey, fontSize: 26.sp, )), ), ), onTap: () {}, )), ), SizedBox(height: 50.w), SubmitBtn( btnName: '确定'.tr, fontSize: 28.sp, borderRadius: 20.w, padding: EdgeInsets.only(top: 25.w, bottom: 25.w), onClick: () {}), ], )); } }