animate this https://www.youtube.com/shorts/UiauIx8OVPk
I'm not promoting it. But problem is i can not animate both opacity and position here is my code.
TweenAnimationBuilder(
tween: Tween<double>(begin: 1, end: 0),
duration: const Duration(milliseconds: 4000),
builder: (BuildContext context, double size, Widget? child) {
return AnimatedOpacity(
opacity: size,
duration: const Duration(milliseconds: 4000),
child: Transform.translate(
offset: Offset(0.0, size), child: widget.child));
});
Double size goes from 0-1 , which works for opacity, but the offset is transitioning Y 1 pixel in 4 seconds… u want to multiply that for a bigger number
but problem is i want button from bottom to top and if i use this then button will from top buttom
Then invert it… (1-size)*200
This looks so nice!! Thanks I will implement
Обсуждают сегодня