flutter_sized_list_view 1.0.3 copy "flutter_sized_list_view: ^1.0.3" to clipboard
flutter_sized_list_view: ^1.0.3 copied to clipboard

This Flutter package offers a widget for use when the sizes of all items are known, ensuring consistent the max scroll offset and preventing unnecessary item rebuilding.

Introduction #

This Flutter package provides a widget that can be used when the sizes of all items are known. While the standard ListView infers the maximum scroll offset, this package defines it with a consistent value. Additionally, when defining the initialScrollOffset, traditional ListView rebuilds all off-screen items to calculate their heights, but the SizedListView widget prevents or avoids this issue.

See Also, If you want the change log by version for this package. refer to Change Log for details.

Usage #

The following explains the basic usage of this package.

When using SizedListView widget. #

SizedListView.builder(
    itemCount: items.length,
    sizeBuilder: ...,
    itemBuilder: ...
),

When using GridView widget. #

GridView(
    gridDelegate: SizedGridDelegate(...),
)
1
likes
150
points
212
downloads

Publisher

verified publisherttangkong.dev

Weekly Downloads

This Flutter package offers a widget for use when the sizes of all items are known, ensuring consistent the max scroll offset and preventing unnecessary item rebuilding.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_sized_list_view