@@ -194,14 +194,14 @@ class RenderSliverStickyHeaderList extends RenderSliverList {
194194
195195 double childScrollOffset;
196196 if (innerChild.direction == constraints.axisDirection) {
197- childScrollOffset =
198- math. max ( 0.0 , scrollOffset - parentData.layoutOffset! );
197+ childScrollOffset = math. max ( 0.0 ,
198+ scrollOffset - parentData.layoutOffset! );
199199 } else {
200200 final childEndOffset =
201201 parentData.layoutOffset! + child.size.onAxis (constraints.axis);
202202 // TODO should this be our layoutExtent or paintExtent, or what?
203- childScrollOffset = math.max (
204- 0.0 , childEndOffset - (scrollOffset + geometry! .layoutExtent));
203+ childScrollOffset = math.max (0.0 ,
204+ childEndOffset - (scrollOffset + geometry! .layoutExtent));
205205 }
206206 innerChild.provideScrollPosition (childScrollOffset);
207207 }
@@ -211,11 +211,12 @@ class RenderSliverStickyHeaderList extends RenderSliverList {
211211enum StickyHeaderSlot { header, content }
212212
213213class StickyHeader extends SlottedMultiChildRenderObjectWidget <StickyHeaderSlot , RenderBox > {
214- const StickyHeader (
215- { super .key,
214+ const StickyHeader ({
215+ super .key,
216216 this .direction = AxisDirection .down,
217217 this .header,
218- this .content});
218+ this .content,
219+ });
219220
220221 final AxisDirection direction;
221222 final Widget ? header;
@@ -241,8 +242,7 @@ class StickyHeader extends SlottedMultiChildRenderObjectWidget<StickyHeaderSlot,
241242 }
242243}
243244
244- class RenderStickyHeader extends RenderBox
245- with SlottedContainerRenderObjectMixin <StickyHeaderSlot , RenderBox > {
245+ class RenderStickyHeader extends RenderBox with SlottedContainerRenderObjectMixin <StickyHeaderSlot , RenderBox > {
246246 RenderStickyHeader ({required AxisDirection direction})
247247 : _direction = direction;
248248
@@ -260,8 +260,10 @@ class RenderStickyHeader extends RenderBox
260260 }
261261
262262 @override
263- Iterable <RenderBox > get children =>
264- [if (_header != null ) _header! , if (_content != null ) _content! ];
263+ Iterable <RenderBox > get children => [
264+ if (_header != null ) _header! ,
265+ if (_content != null ) _content! ,
266+ ];
265267
266268 double ? _slackSize;
267269
@@ -351,8 +353,7 @@ class RenderStickyHeader extends RenderBox
351353 return false ;
352354 }
353355
354- BoxParentData _parentData (RenderBox child) =>
355- child.parentData! as BoxParentData ;
356+ BoxParentData _parentData (RenderBox child) => child.parentData! as BoxParentData ;
356357}
357358
358359Size sizeOn (Axis axis, {double main = 0 , double cross = 0 }) {
0 commit comments