dvzhou

Results 5 comments of dvzhou

照着楼上同学的思路打印了一下发现,activity.getLifecycle().getCurrentState()不仅仅会有STARTED一个状态,还会出现RESUMED状态 onLoadFinished State = RESUMED 所以上面的那个判断还是存在问题。

if ((activity.getLifecycle().getCurrentState() == STARTED || activity.getLifecycle().getCurrentState() == RESUMED) && imageFolders.size() > 0) { return; } 这样以后应该就没问题了

下面是我的代码 ExtendedTextField( specialTextSpanBuilder: TextSpanBuilder(showAtBackground: true), onTap: onTap, onChanged: (v) { onChangedCallBack(v); }, onSubmitted: StorageManager.sharedPreferences.getBool(kChatSendSetting) == true ? (v) { onSubmittedCallBack(v); } : null, decoration: InputDecoration(border: InputBorder.none, focusedBorder: InputBorder.none, enabledBorder: InputBorder.none,...