// ignore_for_file: always_specify_types import 'package:flutter/material.dart'; Route materialRoute(final Widget widget) => MaterialPageRoute( builder: (final BuildContext context) => widget, ); Route noAnimationRoute(final Widget widget) => PageRouteBuilder( pageBuilder: (final BuildContext context, final Animation animation1, final Animation animation2) => widget, );