You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i use PagedListView in body of Scaffold widget it works fine , but when i used it as an element in cloumn or parnet listview i get many errors like :
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
BoxConstraints forces an infinite height.
The relevant error-causing widget was:
PagedListView<int, Food> file:///Users/hesham/StudioProjects/foodlobby_client/lib/src/pages/menu_list.dart:115:9
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
Null check operator used on a null value
The relevant error-causing widget was:
PagedListView<int, Food> file:///Users/hesham/StudioProjects/foodlobby_client/lib/src/pages/menu_list.dart:115:9
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
Null check operator used on a null value
The relevant error-causing widget was:
PagedListView<int, Food> file:///Users/hesham/StudioProjects/foodlobby_client/lib/src/pages/menu_list.dart:115:9
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
Null check operator used on a null value
The relevant error-causing widget was:
PagedListView<int, Food> file:///Users/hesham/StudioProjects/foodlobby_client/lib/src/pages/menu_list.dart:115:9
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
RenderBox was not laid out: RenderShrinkWrappingViewport#f8e22 relayoutBoundary=up18 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1785 pos 12: 'hasSize'
The relevant error-causing widget was:
PagedListView<int, Food> file:///Users/hesham/StudioProjects/foodlobby_client/lib/src/pages/menu_list.dart:115:9
Hi, @heshesh2010 . Today's release (2.2.1) fixes this. Just upgrade the package version and it should work right out of the box.
Although I should mention that using shrinkWrap isn't the ideal way of achieving that sort of layout with widgets preceding your list (even if it was a regular ListView). For a better approach to this, please refer to this section of the cookbook.
Thank you for using the package and opening the issue!
Hi,
when i use PagedListView in body of Scaffold widget it works fine , but when i used it as an element in cloumn or parnet listview i get many errors like :
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
BoxConstraints forces an infinite height.
The relevant error-causing widget was:
PagedListView<int, Food> file:///Users/hesham/StudioProjects/foodlobby_client/lib/src/pages/menu_list.dart:115:9
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
Null check operator used on a null value
The relevant error-causing widget was:
PagedListView<int, Food> file:///Users/hesham/StudioProjects/foodlobby_client/lib/src/pages/menu_list.dart:115:9
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
Null check operator used on a null value
The relevant error-causing widget was:
PagedListView<int, Food> file:///Users/hesham/StudioProjects/foodlobby_client/lib/src/pages/menu_list.dart:115:9
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
Null check operator used on a null value
The relevant error-causing widget was:
PagedListView<int, Food> file:///Users/hesham/StudioProjects/foodlobby_client/lib/src/pages/menu_list.dart:115:9
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
RenderBox was not laid out: RenderShrinkWrappingViewport#f8e22 relayoutBoundary=up18 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1785 pos 12: 'hasSize'
The relevant error-causing widget was:
PagedListView<int, Food> file:///Users/hesham/StudioProjects/foodlobby_client/lib/src/pages/menu_list.dart:115:9
=====
my code :
}
The text was updated successfully, but these errors were encountered: