AnimatedSvg constructor
const
AnimatedSvg({})
AnimatedSvg Widget
Flutter package for displaying and animating Scalable Vector Graphics 1.1 files.
AnimatedSvg(
controller: AnimatedSvgController(),
size: 80,
children: [
SvgPicture.asset('assets/play.svg'),
SvgPicture.asset('assets/pause.svg'),
],
)
Implementation
const AnimatedSvg({
required this.controller,
required this.children,
super.key,
this.onTap,
this.size = 24.0,
this.duration = const Duration(milliseconds: 500),
this.clockwise = true,
this.isActive = true,
}) : assert(children.length == 2, _kRequiredChildrenAssertMessage);