Merge remote-tracking branch 'Gitea/master' into iOS

# Conflicts:
#	pubspec.yaml
iOS
mlch911 4 years ago
commit 21b648c331

@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":20220517,"versionName":"1.5.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] [{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":20220531,"versionName":"1.5.2","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]

@ -246,7 +246,8 @@ class _LoginPageState extends State<LoginByName3> {
if (true) { if (true) {
FocusManager.instance.primaryFocus.unfocus(); // Flutter FocusManager.instance.primaryFocus.unfocus(); // Flutter
// //
if (g_users.isNotEmpty) { // if (g_users.isNotEmpty) {
if (g_users.length > 1) {
//1 //1
// _can_expand_ListView = !_can_expand_ListView; // _can_expand_ListView = !_can_expand_ListView;
g_can_expand_ListView = false; g_can_expand_ListView = false;
@ -281,7 +282,8 @@ class _LoginPageState extends State<LoginByName3> {
selection: TextSelection.fromPosition(TextPosition( selection: TextSelection.fromPosition(TextPosition(
affinity: TextAffinity.downstream, offset: g_userInfo.username.length)))), affinity: TextAffinity.downstream, offset: g_userInfo.username.length)))),
onEndBtn: () { onEndBtn: () {
if (g_users.isNotEmpty) { // if (g_users.isNotEmpty) {
if (g_users.length > 1) {
//1 //1
setState(() { setState(() {
g_can_expand_ListView = !g_can_expand_ListView; g_can_expand_ListView = !g_can_expand_ListView;
@ -292,7 +294,8 @@ class _LoginPageState extends State<LoginByName3> {
// FocusManager.instance.primaryFocus.unfocus(); // Flutter // FocusManager.instance.primaryFocus.unfocus(); // Flutter
// //
// print('xx2'); // print('xx2');
if (g_users.isNotEmpty) { // if (g_users.isNotEmpty) {
if (g_users.length > 1) {
//1 //1
g_can_expand_ListView = false; g_can_expand_ListView = false;
} }
@ -406,7 +409,8 @@ class _LoginPageState extends State<LoginByName3> {
), ),
], ],
), ),
g_users.isNotEmpty ? _buildListView() : Container(), // g_users.isNotEmpty ? _buildListView() : Container(),
g_users.length > 1 ? _buildListView() : Container(),
], ],
), ),
// JdButton( // JdButton(
@ -488,7 +492,8 @@ class _LoginPageState extends State<LoginByName3> {
SaveAccountPasswordManager.delUser(user); SaveAccountPasswordManager.delUser(user);
//Expandfalse //Expandfalse
//1 //1
g_can_expand_ListView = g_users.isNotEmpty; // g_can_expand_ListView = g_users.isNotEmpty;
g_can_expand_ListView = g_users.length > 1;
}); });
}, },
), ),

@ -137,7 +137,8 @@ class _JdTextState extends State<JdText> {
) )
: Icon( : Icon(
Icons.arrow_drop_down, Icons.arrow_drop_down,
color: g_users.isNotEmpty ? Colors.blueAccent : Colors.grey, // color: g_users.isNotEmpty ? Colors.blueAccent : Colors.grey,
color: g_users.length > 1 ? Colors.blueAccent : Colors.grey,
), ),
onPressed: widget.onEndBtn), onPressed: widget.onEndBtn),
); );

Loading…
Cancel
Save