pushResumeAnimateFade static method
void
pushResumeAnimateFade(
- BuildContext context,
- Widget page,
- 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 );
}