pushTransparent static method

void pushTransparent(
  1. BuildContext context,
  2. Widget page
)

Implementation

static void pushTransparent(BuildContext context, Widget page ) {
  var transparent = PageRouteBuilder(
    opaque: false,
    pageBuilder: (_, __, ___) => page,
  );
  Navigator.push(context ,  transparent  );
}