selfprivacy.org.app/lib/utils/route_transitions/basic.dart
2020-11-29 21:07:46 +01:00

10 lines
272 B
Dart

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