freezer/lib/page_routes/basic_page_route.dart

24 lines
502 B
Dart
Raw Normal View History

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