pushResumeAnimateFade static method

void pushResumeAnimateFade(
  1. BuildContext context,
  2. Widget page,
  3. ResumableState<StatefulWidget> resume
)

this make librasry "need_resume" working with push to next page

Implementation

static void pushResumeAnimateFade(BuildContext context, Widget page, ResumableState resume ) {
  var materialPageRoute = PageRouteBuilder(
      pageBuilder: (context, animation, secondaryAnimation) => page,
      transitionsBuilder : _transitionsBuilderFade,
      transitionDuration : _transitionDurationFade
  );
  resume.push(context, materialPageRoute );
  // resume.push( context, materialPageRoute );
}