origin 1.2.1
origin: ^1.2.1 copied to clipboard
Interactive hero animations for Flutter.
1.2.1 #
- Fix
sendEntryusing stale origin rect instead of measured position.
1.2.0 #
- Container computed in
StageviaValueNotifier<OriginRect?>, expand-only during interaction, shrinks on dismiss. Stage.isDismissingOf(context)aspect-based accessor.dismissingfield onStageData.- Dismiss drag anchors rect to pointer — content stays pinned under finger while scaling.
1.1.0 #
- Breaking:
itemGesturing/setItemGesturingreplaced bylocked/setLocked. Stage defaults to locked, unlocks afteranimateToBasecompletes, relocks onreset. - Breaking:
origin,originContainer,display,displayContainer,aspectRatioonStageDatachanged fromValueNotifierto plain values with setters. - Breaking:
originContaineranddisplayContainerare now nullable.nullmeans full screen (no container clip). - Container clipping: overlay clips content to an animated container rect using
ClipPath. Container expands fromoriginContainertowarddisplayContaineras the item moves. Stage.isLockedOf(context)static accessor.containerTagno longer falls back towidget.tag— only explicit container tags are measured.
1.0.0 #
- Breaking:
OriginDisplay+OriginScopemerged intoStage. - Breaking:
OriginItemreplaced byOrigin. - Breaking:
triggerEntrysplit intoopenEntryandsendEntry. - Breaking:
effectTransformreplaced byRotationclass withtoMatrix4. InheritedModelaspects:widgetOf,hasWidgetOf,tagOf,isTagOf.originToBaseProgressnotifier for border radius and scrim interpolation.- Configurable
backgroundColorscrim on Stage. onEndoverridable viasetOnEndorsendEntryoptional parameter.perspectiveonRotationclass andrunEffect.
0.3.0 #
- Breaking:
OriginItem.buildersignature changed fromWidgetBuilder?toWidget Function(BuildContext, Widget)?— receives the child widget as second parameter. - Breaking:
OriginItem.buildernow acts as the gesture builder in the overlay. If noOriginGesture.builderis provided, the item's builder is used instead. OriginItem.builderno longer replaces the overlay widget —widget.childis always used. The builder wraps the clipped child in the overlay.- Overlay blocks gestures on content beneath when active (absorbs pointers between content and overlay layer).
0.2.0 #
- Breaking:
OriginScope.registerItemcallback changed fromVoidCallbacktoFuture<void> Function([Rect Function(Rect)?]). - Breaking:
OriginScope.triggerItemaccepts optionalsendcallback for programmatic dismiss to a computed rect. - Breaking: Scope maps moved from widget instance to display state, fixing registration loss on rebuild.
OriginItem.onTapreplacestap, providesOriginTapEventwithanimateToBaseandrunEffect.OriginItem.onEndcallback fires after dismiss animation, before reset.OriginItem.perspectivefield with fallback chain: runEffect param → item → 0.OriginRect.copyWithmethod.- Gesture
builderonOriginGestureapplied in overlay outside ClipRRect. runEffectwith individual params, back-and-forth animation.- Effect transform uses
Matrix4?with null check. - Removed
OriginEffectclass.
0.1.0 #
- Custom gesture recognizer for arena control.
- GlobalKey state preservation across overlay.
- Vertical shrink dismiss, multi-finger zoom.
- Early gesture acceptance, reduced slop.
0.0.3 #
- Add stackBuilder for showing builder on top of child.
0.0.2 #
- Add tag, visibility, dismiss, animateToBase.
- InheritedModel with aspect-based rebuilds.
- ClipRRect and borderRadius animation on items.
- Safe controller resets.
0.0.1 #
- Initial release.