Skip to content

Should we customize AnimationController in Badge class to give better control over animating the badges? #127

@wamynobe

Description

@wamynobe

Environment

master

Describe your question

I'm wondering if adding two variables animationController and appearanceController would give better control over animating the badges?

class Badge extends StatefulWidget {
  const Badge({
    ...
    this.animationController,
  }) : super(key: key);

final AnimationController? animationController;
...

@override
  void initState() {
    super.initState();
    _animationController = widget.animationController ??
        AnimationController(
          duration: widget.badgeAnimation.animationDuration,
          reverseDuration: widget.badgeAnimation.animationDuration,
          vsync: this,
        );
     ...
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions