File tree Expand file tree Collapse file tree 3 files changed +27
-8
lines changed Expand file tree Collapse file tree 3 files changed +27
-8
lines changed Original file line number Diff line number Diff line change 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**
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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
99homepage : https://github.com/TatsuUkraine/flutter_sticky_infinite_list
1010repository : https://github.com/TatsuUkraine/flutter_sticky_infinite_list
1111issue_tracker : https://github.com/TatsuUkraine/flutter_sticky_infinite_list/issues
You can’t perform that action at this time.
0 commit comments