Open Osmancn opened 3 years ago
Did you migrate using this guide after upgrading flutter?
i did.scrolling is not problem but not trigger refresh and load action
hi, can you attach your code
flutter 2.5.0 https://flutter.dev/docs/release/breaking-changes/default-scroll-behavior-drag
Is there no adaptation?
mac os loadmore not work. skipCanRefresh = true,
Need to pull down manually!
On mac computers, three-finger pull-down can start and two-finger scrolling is not possible.
I have the same problem. Any solution ? I must refresh to load more...
@skyJinc i had similar problem to the web, the infinity scroll just didn't works so i just started to search about the issue and i saw this migration tutorial here: https://flutter.dev/docs/release/breaking-changes/default-scroll-behavior-drag . It helped to me to solve my problem but it would be better if that topic is added to the dependency's documentation.
View this: flutter_pulltorefresh Pull Request #636
tldr;
ScrollConfiguration(
behavior: ScrollConfiguration.of(context).copyWith(
dragDevices: {
PointerDeviceKind.touch,
PointerDeviceKind.mouse,
PointerDeviceKind.trackpad,
PointerDeviceKind.stylus,
},
),
child: SmartRefresher(
enablePullDown: true,
header: WaterDropHeader(),
enablePullUp: true,
footer: CustomFooter(
builder: (BuildContext context, LoadStatus mode) {
Widget body;
if (mode == LoadStatus.idle) {
body = Text("pull up load");
} else if (mode == LoadStatus.loading) {
body = CupertinoActivityIndicator();
} else if (mode == LoadStatus.failed) {
body = Text("Load Failed! Click retry!");
} else if (mode == LoadStatus.canLoading) {
body = Text("release to load more");
} else {
body = Text("No more Data");
}
return Container(
height: 55.0,
child: Center(child: body),
);
},
),
controller: _refreshController,
onRefresh: _onRefresh, // Check example above for this method
onLoading: _onLoading, // Check example above for this method
child: Offstage(), // Replace with your own widget
),
);
refresh and load not trigger with mouse scroll on web(flutter 2.5.0)