Flutter, Animation, App Development, Flutter App Development, iOS App Development.
animation, then it repeats. So, we’ll stop the animation after one second, Using Future.delayed. GestureDetector( onTap: () { riveIconInputs[index].change(true); Future.delayed( const Duration(seconds: 1), () { riveIconInputs[index].change(false); }, ); setState(() { selctedNavIndex = index; }); },