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