You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added pub badge to README.md
Updated dependencies
Removed example section from README.md
Added README.md to example folder
Added documentation comments
Paginable is a Flutter package which makes pagination easier.
2
4
3
5
<p>
@@ -13,7 +15,7 @@ Paginable is a Flutter package which makes pagination easier.
13
15
14
16
## Paginable Widgets
15
17
16
-
-`PaginableListViewBuilder` is paginable's version of [`ListView.builder`](https://api.flutter.dev/flutter/widgets/ListView-class.html)
18
+
-`PaginableListViewBuilder` is paginable's version of [`ListView.builder`](https://api.flutter.dev/flutter/widgets/ListView/ListView.builder.html)
17
19
-`PaginableCustomScrollView` is paginable's version of [`CustomScrollView`](https://api.flutter.dev/flutter/widgets/CustomScrollView-class.html)
18
20
-`PaginableSliverChildBuilderDelegate` is paginable's version of [`SliverChildBuilderDelegate`](https://api.flutter.dev/flutter/widgets/SliverChildBuilderDelegate-class.html)
19
21
@@ -157,11 +159,6 @@ You might miss that the parameter `loadMore` is in `PaginableCustomScrollView`,
157
159
>
158
160
> Paginable is not resposible for managing states, to know about different ways of managing states in Flutter, [https://flutter.dev/docs/development/data-and-backend/state-mgmt/options](https://flutter.dev/docs/development/data-and-backend/state-mgmt/options)
-[Using `PaginableCustomScrollView` with `PaginableSliverChildBuilderDelegate`](https://github.com/chinkysight/paginable/tree/main/example/paginablesliverchildbuilderdelegate_example)
164
-
165
162
## Contribution
166
163
167
164
If you would like to contribute to the package (e.g. by improving the documentation, solving a bug or adding a cool new feature), you are welcomed and very much appreciated to send us your pull request and if you find something wrong with the package, please feel free to open an [issue](https://github.com/chinkysight/paginable/issues).
/// It is the paginable's version of [CustomScrollView](https://api.flutter.dev/flutter/widgets/CustomScrollView-class.html) and it is used along with [PaginableSliverChildBuilderDelegate](https://pub.dev/packages/paginable#using-paginablecustomscrollview-with-paginablesliverchildbuilderdelegate) to perform pagination.
/// It is the is paginable's version of [SliverChildBuilderDelegate](https://api.flutter.dev/flutter/widgets/SliverChildBuilderDelegate-class.html) and it is used along with [PaginableCustomScrollView](https://pub.dev/packages/paginable#using-paginablecustomscrollview-with-paginablesliverchildbuilderdelegate) to perform pagination.
6
7
classPaginableSliverChildBuilderDelegate {
7
8
staticint_kDefaultSemanticIndexCallback(Widget _, int localIndex) =>
8
9
localIndex;
9
10
10
11
finalNullableIndexedWidgetBuilder builder;
12
+
13
+
/// It takes a function which contains two parameters, one being of type `Exception` and other being a
14
+
/// `Function()`, returning a widget which will be displayed at the bottom of the scrollview when an
15
+
/// exception occurs in the async function which we passed to the `loadMore` parameter.
16
+
///
17
+
/// The parameter with type `Exception` will contain the exception which occured while executing the
18
+
/// function passed to the parameter `loadMore` if exception occured, and the parameter with type `Function()`
19
+
/// will contain the same function which we passed to the `loadMore` parameter.
0 commit comments