AchievementView constructor

AchievementView({
  1. double elevation = 2,
  2. GestureTapCallback? onTap,
  3. dynamic listener(
    1. AchievementState
    )?,
  4. OverlayState? overlay,
  5. bool isCircle = false,
  6. Widget icon = const Icon(Icons.insert_emoticon, color: Colors.white),
  7. AnimationTypeAchievement typeAnimationContent = AnimationTypeAchievement.fadeSlideToUp,
  8. BorderRadiusGeometry? borderRadius,
  9. BorderRadiusGeometry? iconBorderRadius,
  10. Color color = Colors.blueGrey,
  11. Color? iconBackgroundColor,
  12. TextStyle? textStyleTitle,
  13. TextStyle? textStyleSubTitle,
  14. AlignmentGeometry alignment = Alignment.topCenter,
  15. Duration duration = const Duration(seconds: 3),
  16. String? title,
  17. String? subTitle,
  18. Widget? content,
})

Implementation

AchievementView({
  this.elevation = 2,
  this.onTap,
  this.listener,
  this.overlay,
  this.isCircle = false,
  this.icon = const Icon(
    Icons.insert_emoticon,
    color: Colors.white,
  ),
  this.typeAnimationContent = AnimationTypeAchievement.fadeSlideToUp,
  this.borderRadius,
  this.iconBorderRadius,
  this.color = Colors.blueGrey,
  this.iconBackgroundColor,
  this.textStyleTitle,
  this.textStyleSubTitle,
  this.alignment = Alignment.topCenter,
  this.duration = const Duration(seconds: 3),
  this.title,
  this.subTitle,
  this.content,
});