Upgrading flutter_slidable 0.2 to 0.3
Unknown0.2.0 → 0.3.2
Fetching 3 releases from GitHub…0 / 3
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
field IconSlideAction.onTap: final VoidCallback - removed:
field SlidableDelegateContext.dragExtent: final double - removed:
field SlideAction.onTap: final VoidCallback - removed:
method IconSlideAction.build(BuildContext context): Widget - removed:
method SlideAction.build(BuildContext context): Widget - changed:
class IconSlideAction extends StatelessWidget → class IconSlideAction extends ClosableSlideAction - changed:
class SlideAction extends StatelessWidget → class SlideAction extends ClosableSlideAction - changed:
ctor IconSlideAction({ Key key, @required this.icon, this.caption, Color color, this.onTap, }) → ctor IconSlideAction({ Key key, @required this.icon, this.caption, Color color, VoidCallback onTap, bool closeOnTap = …, }) - changed:
ctor Slidable({ Key key, @required Widget child, @required SlidableDelegate delegate, List<Widget> actions, List<Widget> secondaryActions, double showAllActionsThreshold = …, double actionExtentRatio = …, Duration movementDuration = …, Axis direction = …, }) → ctor Slidable({ Key key, @required Widget child, @required SlidableDelegate delegate, List<Widget> actions, List<Widget> secondaryActions, double showAllActionsThreshold = …, double actionExtentRatio = …, Duration movementDuration = …, Axis direction = …, bool closeOnScroll = …, bool enabled = …, }) - changed:
ctor Slidable.builder({ Key key, @required this.child, @required this.delegate, this.actionDelegate, this.secondaryActionDelegate, this.showAllActionsThreshold = …, this.actionExtentRatio = …, this.movementDuration = …, this.direction = …, }) → ctor Slidable.builder({ Key key, @required this.child, @required this.delegate, this.actionDelegate, this.secondaryActionDelegate, this.showAllActionsThreshold = …, this.actionExtentRatio = …, this.movementDuration = …, this.direction = …, this.closeOnScroll = …, this.enabled = …, }) - changed:
ctor SlidableDelegateContext( this.slidable, this.showActions, this.dragExtent, this.controller, ) → ctor SlidableDelegateContext( this.slidable, this.showActions, this.dragSign, this.controller, ) - changed:
ctor SlideAction({ Key key, @required this.child, this.onTap, Color color, Decoration decoration, }) → ctor SlideAction({ Key key, @required this.child, VoidCallback onTap, Color color, Decoration decoration, bool closeOnTap = …, }) - added:
class ClosableSlideAction: abstract extends StatelessWidget - added:
ctor ClosableSlideAction({ Key key, this.onTap, this.closeOnTap = …, }) - added:
field ClosableSlideAction.closeOnTap: final bool - added:
field ClosableSlideAction.onTap: final VoidCallback - added:
field Slidable.closeOnScroll: final bool - added:
field Slidable.enabled: final bool - added:
field SlidableDelegateContext.dragSign: final double - added:
method ClosableSlideAction.build(BuildContext context): Widget - added:
method ClosableSlideAction.buildAction(BuildContext context): Widget - added:
method IconSlideAction.buildAction(BuildContext context): Widget - added:
method SlidableState.close(): void - added:
method SlidableState.didChangeDependencies(): void - added:
method SlidableState.didUpdateWidget(Slidable oldWidget): void - added:
method SlidableState.open(): void - added:
method SlideAction.buildAction(BuildContext context): Widget - added:
static method Slidable.of(BuildContext context): SlidableState