forked from firka/student-legacy
18 lines
547 B
Dart
18 lines
547 B
Dart
import 'package:animations/animations.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
Route loginRoute(Widget widget) {
|
|
return PageRouteBuilder(
|
|
pageBuilder: (context, animation, secondaryAnimation) => widget,
|
|
transitionDuration: const Duration(milliseconds: 650),
|
|
transitionsBuilder: (context, animation, secondaryAnimation, child) {
|
|
return FadeThroughTransition(
|
|
fillColor: Colors.transparent,
|
|
animation: animation,
|
|
secondaryAnimation: secondaryAnimation,
|
|
child: child,
|
|
);
|
|
},
|
|
);
|
|
}
|