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

使用组件报错Error: A non-null value must be returned since the return type 'Widget' doesn't allow null #825

Closed
xupengku123 opened this issue Apr 29, 2024 · 3 comments

Comments

@xupengku123
Copy link

用的https://gitee.com/openharmony-sig/flutter_flutter 支持鸿蒙的flutter SDK。
接入后使用组件报错。
原因是我是用的flutter SDK的TargetPlatform枚举里多了一个ohos
image
导致buildScrollbar方法有可能fanh返回空
这里能做个兼容给个默认返回吗

@xuelongqy
Copy link
Owner

你暂时可以自己实现一下ScrollBehavior,然后设置EasyRefresh.defaultScrollBehaviorBuilder。下个版本会做兼容处理

@xuelongqy
Copy link
Owner

3.4.0已修复

@shihuatao
Copy link

WeChat96a92c7671ede26a144dcd4afb37077a

用的https://gitee.com/openharmony-sig/flutter_flutter 支持鸿蒙的flutter SDK。

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