phase3: shop.dart NotificationListener return bool

This commit is contained in:
2026-07-31 14:54:32 +08:00
parent 6487c0db54
commit 70076d71c1
2 changed files with 7 additions and 7 deletions

View File

@@ -1324,13 +1324,13 @@ class ShopState extends State<Shop>
onNotification: (ScrollUpdateNotification notification) {
if (!displayProductByCategoryClick) {
if (_categoryIndexChange) {
return;
return false;
}
int index = _getCategoryIndexByRightScrollHeight(
notification.metrics.pixels);
_setCategoryByProductScrolledIndex(index);
}
return;
return false;
},
child: new ListView.builder(
physics: ClampingScrollPhysics(),