RelativePositionedTransitionModifier constructor

const RelativePositionedTransitionModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required Animation<Rect?> rect,
  5. required Size size,
})

Create an animated version of Positioned.

Each frame, the Positioned widget will be configured to represent the current value of the rect argument assuming that the stack has the given size. Both rect and size must not be null.

Implementation

const RelativePositionedTransitionModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.rect,
  required this.size,
});