Skip to content

Commit

Permalink
Merge pull request #12 from TatsuUkraine/release-1.2.2
Browse files Browse the repository at this point in the history
Release 1.2.2
  • Loading branch information
TatsuUkraine authored Jul 22, 2019
2 parents 151cd34 + 3458664 commit 8bc02f8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [1.2.2] - 2019-06-22

**Bug fixes**

- fixed type definition for render object [#10](https://github.com/TatsuUkraine/flutter_sticky_infinite_list/issues/10)

## [1.2.1] - 2019-06-21

- shorten package description
Expand Down
2 changes: 1 addition & 1 deletion lib/render.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class StickyListItemRenderObject<I> extends RenderStack {
}

bool get _scrollDirectionVertical =>
[AxisDirection.up, AxisDirection.down].contains(_scrollable.axisDirection);
[AxisDirection.up, AxisDirection.down].contains(scrollable.axisDirection);

bool get _alignmentStart {
if (_scrollDirectionVertical) {
Expand Down
15 changes: 8 additions & 7 deletions lib/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -406,14 +406,15 @@ class StickyListItem<I> extends Stack {

@override
@mustCallSuper
void updateRenderObject(
BuildContext context, StickyListItemRenderObject<I> renderObject) {
void updateRenderObject(BuildContext context, RenderStack renderObject) {
super.updateRenderObject(context, renderObject);

renderObject
..scrollable = _getScrollableState(context)
..itemIndex = itemIndex
..streamSink = streamSink
..minOffsetProvider = minOffsetProvider;
if (renderObject is StickyListItemRenderObject<I>) {
renderObject
..scrollable = _getScrollableState(context)
..itemIndex = itemIndex
..streamSink = streamSink
..minOffsetProvider = minOffsetProvider;
}
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >-
Can be customized or with config options or with override.
version: 1.2.1
version: 1.2.2
author: TatsuUkraine <[email protected]>
homepage: https://github.com/TatsuUkraine/flutter_sticky_infinite_list
repository: https://github.com/TatsuUkraine/flutter_sticky_infinite_list
Expand Down

0 comments on commit 8bc02f8

Please sign in to comment.