Skip to content

Commit

Permalink
Update changelog, fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Xezolpl committed Nov 12, 2024
1 parent 6eb690b commit 20d889b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/leancode_cubit_utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.1

* Rename `headerBuilder` and `footerBuilder` to `headerSliverBuilder` and `footerSliverBuilder` in `PaginatedCubitLayout`

## 0.3.0

* Export `RequestCubitConfig` from `leancode_cubit_utils.dart`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ class PaginatedCubitLayout<TData, TItem> extends StatelessWidget {
controller: controller,
physics: physics,
slivers: [
if (headerSliverBuilder != null)
headerSliverBuilder!(context, cubit.state),
if (headerSliverBuilder case final headerSliverBuilder?)
headerSliverBuilder(context, cubit.state),
BlocBuilder<PaginatedCubit<TData, dynamic, dynamic, TItem>,
PaginatedState<TData, TItem>>(
bloc: cubit,
Expand All @@ -119,8 +119,8 @@ class PaginatedCubitLayout<TData, TItem> extends StatelessWidget {
};
},
),
if (footerSliverBuilder != null)
footerSliverBuilder!(context, cubit.state),
if (footerSliverBuilder case final footerSliverBuilder?)
footerSliverBuilder(context, cubit.state),
],
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/leancode_cubit_utils/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: leancode_cubit_utils
description: A collection of cubits and widgets that facilitate the creation of repetitive pages, eliminating boilerplate.
version: 0.3.0
version: 0.3.1
repository: https://github.com/leancodepl/leancode_cubit_utils

environment:
Expand Down

0 comments on commit 20d889b

Please sign in to comment.