1234567891011121314151617181920 |
- import 'package:flutter/material.dart';
-
- class NoAnimationMaterialPageRoute<T> extends MaterialPageRoute<T> {
- NoAnimationMaterialPageRoute({
- @required WidgetBuilder builder,
- RouteSettings settings,
- bool maintainState = true,
- bool fullscreenDialog = false,
- }) : super(
- builder: builder,
- maintainState: maintainState,
- settings: settings,
- fullscreenDialog: fullscreenDialog);
-
- @override
- Widget buildTransitions(BuildContext context, Animation<double> animation,
- Animation<double> secondaryAnimation, Widget child) {
- return child;
- }
- }
|