mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-16 13:43:17 +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,
|
|
);
|