We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在初始化的时候就加载指定asset图片,而不是在需要展示的时候才开始加载。
@override void initState() { super.initState(); WidgetsBinding.instance.addPostFrameCallback((_) async { // _imageUrls 就是数组的Asset图片地址 _imageUrls.forEach((image) { precacheImage(AssetImage(image), context); }); }); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
1.你是如何解决asset数组图片滑动出现白屏问题的?
答案:
在初始化的时候就加载指定asset图片,而不是在需要展示的时候才开始加载。
The text was updated successfully, but these errors were encountered: