AchievementWidget constructor
const
AchievementWidget({
- Key? key,
- VoidCallback? finish,
- Duration duration = const Duration(seconds: 3),
- ValueChanged<
AchievementState> ? listener, - bool isCircle = false,
- double elevation = 2,
- Widget icon = const Icon(Icons.insert_emoticon, color: Colors.white),
- GestureTapCallback? onTap,
- AnimationTypeAchievement typeAnimationContent = AnimationTypeAchievement.fadeSlideToUp,
- BorderRadiusGeometry? borderRadius,
- Color color = Colors.blueGrey,
- Color? iconBackgroundColor,
- BorderRadiusGeometry? iconBorderRadius,
- TextStyle? textStyleTitle,
- TextStyle? textStyleSubTitle,
- String? title,
- String? subTitle,
- Widget? content,
Implementation
const AchievementWidget({
Key? key,
this.finish,
this.duration = const Duration(seconds: 3),
this.listener,
this.isCircle = false,
this.elevation = 2,
this.icon = const Icon(
Icons.insert_emoticon,
color: Colors.white,
),
this.onTap,
this.typeAnimationContent = AnimationTypeAchievement.fadeSlideToUp,
this.borderRadius,
this.color = Colors.blueGrey,
this.iconBackgroundColor,
this.iconBorderRadius,
this.textStyleTitle,
this.textStyleSubTitle,
this.title,
this.subTitle,
this.content,
}) : super(key: key);