selfprivacy.org.app/lib/utils/route_transitions/basic.dart
NaiJi 2ac8e4366b Linting!
Co-authored-by: Inex Code <inex.code@selfprivacy.org>
2022-06-06 01:40:34 +03:00

15 lines
413 B
Dart

import 'package:flutter/material.dart';
Route materialRoute(final Widget widget) => MaterialPageRoute(
builder: (final BuildContext context) => widget,
);
Route noAnimationRoute(final Widget widget) => PageRouteBuilder(
pageBuilder: (
final BuildContext context,
final Animation<double> animation1,
final Animation<double> animation2,
) =>
widget,
);