This package provides advanced Hero widget which also animate its child's border.
The usage is similiar to Hero()
. However, you have to provide radius as radius
parameter is required.
CircularBorderHero(
tag: 'tag',
radius: 10.0,
child: yourChild,
)
If you want to override the default animation, pass a flightShuttleBuilder
:
CircularBorderHero(
tag: 'tag',
radius: 10.0,
child: yourChild,
flightShuttleBuilder: (context, animation, direction, startContext, endContext) {
// write your designed animation here
return; // return a widget
}
)