import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; import '../../../app_settings/app_colors.dart'; import '../../../tools/tf_loginInput.dart'; import '../../../tools/titleAppBar.dart'; import '../../../translations/trans_lib.dart'; class MinePersonInfoEditNamePage extends StatefulWidget { const MinePersonInfoEditNamePage({Key? key}) : super(key: key); @override State createState() => _MinePersonInfoEditNamePageState(); } class _MinePersonInfoEditNamePageState extends State { final TextEditingController _changeNickNameController = TextEditingController(); @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.white, appBar: TitleAppBar( barTitle: TranslationLoader.lanKeys!.changeNickName!.tr, haveBack: true, backgroundColor: AppColors.mainColor, actionsList: [ TextButton( child: Text( TranslationLoader.lanKeys!.save!.tr, style: TextStyle(color: Colors.white, fontSize: 24.sp), ), onPressed: () {}, ), ], ), body: Container( padding: EdgeInsets.all(15.w), child: Column( children: [ LoginInput( controller: _changeNickNameController, isPwd: true, leftWidget: SizedBox(width: 15.w), hintText: "${TranslationLoader.lanKeys!.pleaseEnter!.tr}${TranslationLoader.lanKeys!.accountNumber!.tr}", inputFormatters: [ // LengthLimitingTextInputFormatter(20), ]), ], ), )); } }