mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-12 19:53:51 +00:00
15 lines
413 B
Dart
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,
|
|
);
|