INNER CODE UNIT · Dart

MoveToArcState

Klerith/animate_do_package · lib/src/custom_animation/move_to_arc.dart:45

class MoveToArcState extends AnimateDoBaseState<MoveToArc> {
  late Animation<double> _progress;

  @override
  void createTweens() {
    _progress = Tween<double>(begin: 0, end: 1).animate(
      CurvedAnimation(parent: controller, curve: widget.curve),
    );
  }

  @override
  Widget buildAnimatedChild(BuildContext context, Widget child) {
    final double t = _progress.value;
    final double angle = t * pi / 2;

    final double verticalRadius = widget.bottom - widget.top;
    final double horizontalDelta = widget.right - widget.left;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…