freezer/lib/page_routes/basic_page_route.dart
2023-07-29 04:17:26 +02:00

22 lines
513 B
Dart

import 'package:flutter/widgets.dart';
abstract class BasicPageRoute<T> extends PageRoute<T> {
final Duration transitionDuration;
final bool maintainState;
BasicPageRoute({
this.transitionDuration = const Duration(milliseconds: 300),
this.maintainState = true,
RouteSettings? settings,
}) : super(settings: settings);
@override
bool get barrierDismissible => false;
@override
Color? get barrierColor => null;
@override
String? get barrierLabel => null;
}