Skip to content

Commit

Permalink
Merge pull request #32 from TatsuUkraine/release-2.1.0
Browse files Browse the repository at this point in the history
Release 2.1.0
  • Loading branch information
TatsuUkraine committed Jul 2, 2020
2 parents 93adb25 + 8117920 commit a9523d8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [2.1.0] - 2020-07-02

**Feature**
- allow content alignment against list item container

## [2.0.1] - 2020-07-02

**Bug fixes**
Expand Down
28 changes: 21 additions & 7 deletions lib/render.dart
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,13 @@ class StickyListItemRenderObject<I> extends RenderStack {
!_scrollDirectionVertical
)
) {
content.layout(constraints.copyWith(
maxWidth: constraints.maxWidth - headerSize.width
), parentUsesSize: true);
content.layout(
constraints.copyWith(
maxWidth: constraints.maxWidth - headerSize.width,
minHeight: headerSize.height,
),
parentUsesSize: true,
);

if (
(
Expand Down Expand Up @@ -443,9 +447,13 @@ class StickyListItemRenderObject<I> extends RenderStack {
!_scrollDirectionVertical
)
) {
content.layout(constraints.copyWith(
maxHeight: constraints.maxHeight - headerSize.height
), parentUsesSize: true);
content.layout(
constraints.copyWith(
maxHeight: constraints.maxHeight - headerSize.height,
minWidth: headerSize.width,
),
parentUsesSize: true,
);

if (
(
Expand All @@ -469,7 +477,13 @@ class StickyListItemRenderObject<I> extends RenderStack {
}
}

content.layout(constraints, parentUsesSize: true);
content.layout(
constraints.copyWith(
minHeight: headerSize.height,
minWidth: headerSize.width,
),
parentUsesSize: true,
);
final Size contentSize = content.size;

return Size(
Expand Down
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: 2.0.1
version: 2.1.0
homepage: https://github.com/TatsuUkraine/flutter_sticky_infinite_list
repository: https://github.com/TatsuUkraine/flutter_sticky_infinite_list
issue_tracker: https://github.com/TatsuUkraine/flutter_sticky_infinite_list/issues
Expand Down

0 comments on commit a9523d8

Please sign in to comment.