hyzp_ybqx-Commit099:版本号更新为version: 1.4.16+20220126,在LoginByName3页面的用户名、密码输入栏实现保持光标在最后

master
WinUser01 4 years ago
parent fa00fa1792
commit 8eb964e311

@ -274,7 +274,12 @@ class _LoginPageState extends State<LoginByName3> {
g_userInfo.username = value; g_userInfo.username = value;
}, },
endBtn: 'ClearBtn', endBtn: 'ClearBtn',
controller: TextEditingController(text: g_userInfo.username), // controller: TextEditingController(text: g_userInfo.username),
controller: TextEditingController.fromValue(TextEditingValue(
text: g_userInfo.username,
// https://blog.csdn.net/weixin_38025168/article/details/103185466
selection: TextSelection.fromPosition(TextPosition(
affinity: TextAffinity.downstream, offset: g_userInfo.username.length)))),
onEndBtn: () { onEndBtn: () {
if (g_users.isNotEmpty) { if (g_users.isNotEmpty) {
//1 //1
@ -318,7 +323,13 @@ class _LoginPageState extends State<LoginByName3> {
g_userInfo.password = value; g_userInfo.password = value;
}, },
endBtn: 'ShowHiddenBtn', endBtn: 'ShowHiddenBtn',
controller: TextEditingController(text: g_userInfo.password), // controller: TextEditingController(text: g_userInfo.password),
controller: TextEditingController.fromValue(TextEditingValue(
text: g_userInfo.password,
// https://blog.csdn.net/weixin_38025168/article/details/103185466
selection: TextSelection.fromPosition(TextPosition(
affinity: TextAffinity.downstream,
offset: g_userInfo.password.length)))),
), ),
], ],
), ),

@ -55,7 +55,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# version: 1.4.14 # 为规范起见,从该版本起取消后面的 +20220124 # version: 1.4.14 # 为规范起见,从该版本起取消后面的 +20220124
#version: 1.4.14+20220124 # 無法獲取flutter编译时间只有通过这种方式获取所以还是保留后面的 +20220124。 #version: 1.4.14+20220124 # 無法獲取flutter编译时间只有通过这种方式获取所以还是保留后面的 +20220124。
# 上传软件时可以不加后面的 +20220124否则二维码扫码后无法直接下载 # 上传软件时可以不加后面的 +20220124否则二维码扫码后无法直接下载
version: 1.4.15+20220124 #version: 1.4.15+20220124
version: 1.4.16+20220126
environment: environment:
sdk: ">=2.7.0 <3.0.0" sdk: ">=2.7.0 <3.0.0"

Loading…
Cancel
Save