Skip to content

Instantly share code, notes, and snippets.

@sajithlaldev
sajithlaldev / AnimationControllerAdapter.dart
Created June 6, 2025 12:25
Smooth Transition animation in Flutter using flutter_physics
import 'package:flutter/material.dart';
import 'package:flutter_physics/flutter_physics.dart';
class AnimationsControllerAdapter implements AnimationController {
AnimationsControllerAdapter(this.physicsController);
final PhysicsController physicsController;
@override
Duration? get duration => physicsController.duration;