open:animatedswitcher

AnimatedSwitcher

snippet.dart
AnimatedSwitcher(
  duration: Duration(milliseconds: 300),
  transitionBuilder: (Widget child, Animation<double> animation) {
    return SlideTransition(
      child: FadeTransition(
        opacity: animation,
        child: child,
      ),
      position: Tween<Offset>(
              begin: Offset(0.0, -0.05), end: Offset(0.0, 0.0))
          .animate(animation),
    );
  },
  child: recordWidget,
)
  • open/animatedswitcher.txt
  • Last modified: 2024/10/05 06:15
  • by 127.0.0.1