@@ -150,26 +150,20 @@ class RenderGFStickyHeader extends RenderBox
150150
151151 final double stickyContentBodyOffset = getHeaderTileStuckOffset ();
152152
153- int totalFlex = 0 ;
154- int totalChildren = 0 ;
153+
155154 assert (constraints != null );
156- final double maxMainSize = _direction == Axis .horizontal
157- ? constraints.maxWidth
158- : constraints.maxHeight;
159- final bool canFlex = maxMainSize < double .infinity;
160155
161156 double crossSize = 0 ;
162157 double allocatedSize = 0 ;
163158 RenderBox child = firstChild;
164- RenderBox lastFlexChild;
159+ // ignore: unused_local_variable
160+ int totalChildren = 0 ;
165161 while (child != null ) {
166162 // ignore: avoid_as
167163 final FlexParentData childParentData = child.parentData as FlexParentData ;
168164 totalChildren++ ;
169165 final int flex = _getFlex (child);
170166 if (flex > 0 ) {
171- totalFlex += childParentData.flex;
172- lastFlexChild = child;
173167 } else {
174168 BoxConstraints innerConstraints;
175169 switch (_direction) {
@@ -190,7 +184,6 @@ class RenderGFStickyHeader extends RenderBox
190184
191185 final double idealSize = allocatedSize;
192186 double actualSize;
193- double actualSizeDelta;
194187 switch (_direction) {
195188 case Axis .horizontal:
196189 size = constraints.constrain (Size (idealSize, crossSize));
@@ -203,9 +196,6 @@ class RenderGFStickyHeader extends RenderBox
203196 crossSize = size.width;
204197 break ;
205198 }
206- actualSizeDelta = actualSize - allocatedSize;
207- // _overflow = math.max(0, -actualSizeDelta);
208- final double remainingSpace = math.max (0 , actualSizeDelta);
209199 const double leadingSpace = 0 ;
210200 const double betweenSpace = 0 ;
211201 const bool flipMainAxis = ! true ;
0 commit comments