The flutter_grouped_scroll_view package lacks two key functionalities for customizing list appearance and behavior:
-
Padding: Unlike ListView and GridView, it doesn't offer padding options, making it difficult to add space between list content and the viewport edges.
-
Indexing: There's no way to access individual list item indexes within the builder function. This limits the ability to customize list tiles based on their position (e.g., changing background color based on even/odd indices).
Proposed Solution:
This issue proposes adding these functionalities to flutter_grouped_scroll_view:
-
Padding: Introduce a new property that allows specifying padding around the list content.
e.g., padding: EdgeInsets.all(8)
-
Indexing: Provide a way to access the index of each list item within the item builder function.
e.g., itemBuilder: (context, item, index)
The
flutter_grouped_scroll_viewpackage lacks two key functionalities for customizing list appearance and behavior:Padding: Unlike
ListViewandGridView,it doesn't offer padding options, making it difficult to add space between list content and the viewport edges.Indexing: There's no way to access individual list item indexes within the builder function. This limits the ability to customize list tiles based on their position (e.g., changing background color based on even/odd indices).
Proposed Solution:
This issue proposes adding these functionalities to flutter_grouped_scroll_view:
Padding: Introduce a new property that allows specifying padding around the list content.
e.g.,
padding: EdgeInsets.all(8)Indexing: Provide a way to access the index of each list item within the item builder function.
e.g.,
itemBuilder: (context, item, index)