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.
- Host: GitHub
- URL: https://github.com/mttankkeo/flutter_sized_listview
- Owner: MTtankkeo
- License: bsd-3-clause
- Created: 2025-04-01T23:03:40.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-04-01T23:41:54.000Z (3 months ago)
- Last Synced: 2025-04-02T00:27:51.706Z (3 months ago)
- Topics: flutter, flutter-package, flutter-ui, listview
- Language: Dart
- Homepage: https://pub.dev/packages/flutter_sized_list_view
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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(...),
)
```