flutter_nested

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

flutter nested

flutter_nested #



Lists that support nested scrolling can customize the header and the number of lines displayed per line.
Content #

Examples
Getting started
API
Contribution

Examples #

Examples


Getting Started #
_buildList() {
return HiNestedScrollView(
controller: scrollController,
padding: EdgeInsets.only(top: 10, left: 10, right: 10),
headers: [
Image.network(
"https://img.mukewang.com/5f057a6a0001f4f918720764.jpg",
),
SizedBox(height: 10)
],
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 2, childAspectRatio: 0.95),
itemCount: 50,
itemBuilder: (BuildContext context, int index) {
return _buildItem(index);
});
}
copied to clipboard
API #



Props
Type
Optional
Description




headers
List
true
Define the head of the list


itemCount
int
false
The number of items except head


itemBuilder
IndexedWidgetBuilder
false
Called to build children for the sliver


gridDelegate
SliverGridDelegate
false
Controls the layout of tiles in a grid


controller
ScrollController
true
Controls a scrollable widget


padding
EdgeInsetsGeometry
true
The padding of list



Contribution #
Issues are welcome. Please add a screenshot of you bug and a code snippet. Quickest way to solve issue is to reproduce it in one of the examples.
Pull requests are welcome. If you want to change the API or do something big it is best to create an issue and discuss it first.

MIT Licensed

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.