AchievementWidget constructor

const AchievementWidget({
  1. Key? key,
  2. VoidCallback? finish,
  3. Duration duration = const Duration(seconds: 3),
  4. ValueChanged<AchievementState>? listener,
  5. bool isCircle = false,
  6. double elevation = 2,
  7. Widget icon = const Icon(Icons.insert_emoticon, color: Colors.white),
  8. GestureTapCallback? onTap,
  9. AnimationTypeAchievement typeAnimationContent = AnimationTypeAchievement.fadeSlideToUp,
  10. BorderRadiusGeometry? borderRadius,
  11. Color color = Colors.blueGrey,
  12. Color? iconBackgroundColor,
  13. BorderRadiusGeometry? iconBorderRadius,
  14. TextStyle? textStyleTitle,
  15. TextStyle? textStyleSubTitle,
  16. String? title,
  17. String? subTitle,
  18. 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);