QudsAutoAnimatedCombinedIcons constructor
const
QudsAutoAnimatedCombinedIcons({
- required IconData startIcon,
- required IconData endIcon,
- Color? color,
- Color? startIconColor,
- Color? endIconColor,
- bool showStartIcon = false,
- bool? withRotation,
- double? iconSize,
- Curve curve = Curves.fastLinearToSlowEaseIn,
- Duration duration = const Duration(milliseconds: 400),
- TextDirection? textDirection,
- Duration startAnimationAfter = const Duration(milliseconds: 300),
- Key? key,
This widgets consists of startIcon
& endIcon
,
color
is the icons color, will be applied to the
both of icons, unless startIconColor
, endIconColor
are set.
iconSize
is the size of the two icons.
showStartIcon
if is true
the widget will show initially the endIcon
,
and automatically transit to startIcon
.
if set to false
will show initially the startIcon
,
and automatically transit to endIcon
.
withRotation
indicates weather the icons will transite with rotation.
curve
the curve of the transition velocity.
duration
the duration of the transition, initially set to 400 ms
textDirection
the direction of the icons.
startAnimationAfter
the duration before the initially shown icon to
start transit.
Implementation
const QudsAutoAnimatedCombinedIcons(
{required this.startIcon,
required this.endIcon,
this.color,
this.startIconColor,
this.endIconColor,
this.showStartIcon = false,
this.withRotation,
this.iconSize,
this.curve = Curves.fastLinearToSlowEaseIn,
this.duration = const Duration(milliseconds: 400),
this.textDirection,
this.startAnimationAfter = const Duration(milliseconds: 300),
Key? key})
: super(key: key);