freezer/lib/page_routes/basic_page_route.dart
2021-11-01 17:41:25 +01:00

21 lines
435 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,
});
@override
bool get barrierDismissible => false;
@override
Color? get barrierColor => null;
@override
String? get barrierLabel => null;
}