21 lines
435 B
Dart
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;
|
|
}
|