animateModalPop method

Widget animateModalPop({
  1. int delayMs = 150,
})
  1. Modal Scale-In: Bottom sheet ke items ke liye pop-in effect.

Implementation

Widget animateModalPop({int delayMs = 150}) {
  return animate(delay: delayMs.ms)
      .scale(
        begin: const Offset(0.9, 0.9),
        end: const Offset(1, 1),
        curve: Curves.easeOutCubic,
      )
      .fadeIn();
}