Skip to content

Commit a9523d8

Browse files
authored
Merge pull request #32 from TatsuUkraine/release-2.1.0
Release 2.1.0
2 parents 93adb25 + 8117920 commit a9523d8

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [2.1.0] - 2020-07-02
2+
3+
**Feature**
4+
- allow content alignment against list item container
5+
16
## [2.0.1] - 2020-07-02
27

38
**Bug fixes**

lib/render.dart

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,13 @@ class StickyListItemRenderObject<I> extends RenderStack {
408408
!_scrollDirectionVertical
409409
)
410410
) {
411-
content.layout(constraints.copyWith(
412-
maxWidth: constraints.maxWidth - headerSize.width
413-
), parentUsesSize: true);
411+
content.layout(
412+
constraints.copyWith(
413+
maxWidth: constraints.maxWidth - headerSize.width,
414+
minHeight: headerSize.height,
415+
),
416+
parentUsesSize: true,
417+
);
414418

415419
if (
416420
(
@@ -443,9 +447,13 @@ class StickyListItemRenderObject<I> extends RenderStack {
443447
!_scrollDirectionVertical
444448
)
445449
) {
446-
content.layout(constraints.copyWith(
447-
maxHeight: constraints.maxHeight - headerSize.height
448-
), parentUsesSize: true);
450+
content.layout(
451+
constraints.copyWith(
452+
maxHeight: constraints.maxHeight - headerSize.height,
453+
minWidth: headerSize.width,
454+
),
455+
parentUsesSize: true,
456+
);
449457

450458
if (
451459
(
@@ -469,7 +477,13 @@ class StickyListItemRenderObject<I> extends RenderStack {
469477
}
470478
}
471479

472-
content.layout(constraints, parentUsesSize: true);
480+
content.layout(
481+
constraints.copyWith(
482+
minHeight: headerSize.height,
483+
minWidth: headerSize.width,
484+
),
485+
parentUsesSize: true,
486+
);
473487
final Size contentSize = content.size;
474488

475489
return Size(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: >-
55
66
Can be customized or with config options or with override.
77
8-
version: 2.0.1
8+
version: 2.1.0
99
homepage: https://github.com/TatsuUkraine/flutter_sticky_infinite_list
1010
repository: https://github.com/TatsuUkraine/flutter_sticky_infinite_list
1111
issue_tracker: https://github.com/TatsuUkraine/flutter_sticky_infinite_list/issues

0 commit comments

Comments
 (0)