xuelongqy / flutter_easy_refresh

A flutter widget that provides pull-down refresh and pull-up load.
https://xuelongqy.github.io/flutter_easy_refresh/
MIT License
3.89k stars 633 forks source link

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

Closed xupengku123 closed 4 months ago

xupengku123 commented 5 months ago

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

xuelongqy commented 5 months ago

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

xuelongqy commented 4 months ago

3.4.0已修复

shihuatao commented 4 weeks ago

WeChat96a92c7671ede26a144dcd4afb37077a

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