QudsAnimatedCombinedIcons constructor
const
QudsAnimatedCombinedIcons({
- required IconData startIcon,
- required IconData endIcon,
- Color? color,
- Color? startIconColor,
- Color? endIconColor,
- double? iconSize,
- bool showStartIcon = true,
- bool? withRotation,
- Curve curve = Curves.easeInCubic,
- Duration duration = const Duration(milliseconds: 400),
- TextDirection? textDirection,
- 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 startIcon,
if set to false
it will show initially the 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.
Implementation
const QudsAnimatedCombinedIcons(
{required this.startIcon,
required this.endIcon,
this.color,
this.startIconColor,
this.endIconColor,
this.iconSize,
this.showStartIcon = true,
this.withRotation,
this.curve = Curves.easeInCubic,
this.duration = const Duration(milliseconds: 400),
this.textDirection,
Key? key})
: super(key: key);