INNER CODE UNIT · Dart

BadgeState

yako-dev/flutter_badges · lib/src/badge.dart:64

class BadgeState extends State<Badge> with TickerProviderStateMixin {
  late AnimationController _animationController;
  late AnimationController _appearanceController;
  late Animation<double> _animation;
  bool enableLoopAnimation = false;

  /// Provides access to the main animation controller for advanced use cases.
  AnimationController get animationController => _animationController;

  /// Provides access to the appearance/disappearance controller.
  AnimationController get appearanceController => _appearanceController;

  @override
  void initState() {
    super.initState();
    enableLoopAnimation =
        widget.badgeAnimation.animationDuration.inMilliseconds > 0;
    _animationController = AnimationController(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…