Skip to content

Commit

Permalink
sticky_header [nfc]: Use new SlottedMultiChildRenderObjectWidget base…
Browse files Browse the repository at this point in the history
… class

This was introduced recently upstream, deprecating the old mixin
SlottedMultiChildRenderObjectWidgetMixin.

This change follows up on 2f0f469 (from #103), which handled the
mandatory part of the same upstream API change.
  • Loading branch information
gnprice authored and chrisbobbe committed May 23, 2023
1 parent 998c812 commit 59e3064
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/widgets/sticky_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,8 @@ class RenderSliverStickyHeaderList extends RenderSliverList {

enum StickyHeaderSlot { header, content }

class StickyHeader extends RenderObjectWidget
with SlottedMultiChildRenderObjectWidgetMixin<StickyHeaderSlot, RenderBox> {
StickyHeader(
class StickyHeader extends SlottedMultiChildRenderObjectWidget<StickyHeaderSlot, RenderBox> {
const StickyHeader(
{super.key,
this.direction = AxisDirection.down,
this.header,
Expand Down

0 comments on commit 59e3064

Please sign in to comment.