onItemClick method

void onItemClick(
  1. int index,
  2. ImageObj obj
)

Implementation

void onItemClick(int index, ImageObj obj) {
  Navigator.push(_scaffoldCtx, PageRouteBuilder(
    transitionDuration: Duration(milliseconds: slow ? 800 : 1000),
    pageBuilder: (_, __, ___) => MotionPageDetails(index, obj))
  );
  slow = !slow;
}