Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安卓上联系人列表设置 _suspensionTag = tag;有明显卡顿 #2

Open
limocute opened this issue Dec 23, 2019 · 4 comments
Open

Comments

@limocute
Copy link

limocute commented Dec 23, 2019

如果这里设置了,在android下滑动联系人,当顶部item的Tag不同与前一条项的tag时会有明显卡顿

/// 索引标签被点击
void _onSusTagChanged(String tag) {
setState(() {
_suspensionTag = tag;
});
}

@CoderMikeHe
Copy link
Owner

这段代码是azlistview提供的,建议用真机试试,(ps: 我不会安卓...)

@limocute
Copy link
Author

是使用真机调试的

@limocute
Copy link
Author

貌似是setState 使整个列表重绘了,才会卡

@yasencoder
Copy link

模拟器不卡,iphone真机和安卓真机都会很卡。在索引条上滑动,基本没有反应。会打印错误信息: setState() called after dispose()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants