An open API service indexing awesome lists of open source software.

https://github.com/mttankkeo/flutter_sized_listview

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.
https://github.com/mttankkeo/flutter_sized_listview

flutter flutter-package flutter-ui listview

Last synced: 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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](CHANGELOG.md) 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.
```dart
SizedListView.builder(
itemCount: items.length,
sizeBuilder: ...,
itemBuilder: ...
),
```

### When using `GridView` widget.
```dart
GridView(
gridDelegate: SizedGridDelegate(...),
)
```