selfprivacy.org.app/lib/utils/route_transitions/basic.dart

10 lines
272 B
Dart
Raw Normal View History

2020-11-29 20:07:46 +00:00
import 'package:flutter/material.dart';
Route materialRoute(Widget widget) => MaterialPageRoute(
builder: (context) => widget,
);
Route noAnimationRoute(Widget widget) => PageRouteBuilder(
pageBuilder: (context, animation1, animation2) => widget,
);