Add animations and details page screen

This commit is contained in:
Ricardo Markiewicz
2019-06-28 11:48:17 -03:00
parent de396d9fa3
commit ffbec2acfd
9 changed files with 392 additions and 81 deletions
+15
View File
@@ -0,0 +1,15 @@
import 'package:flutter/material.dart';
class AddPageTransition extends PageRouteBuilder {
final Widget page;
final Widget background;
AddPageTransition({this.page, this.background})
: super(
transitionDuration: Duration(microseconds: 1),
pageBuilder: (context, animation1, animation2) => page,
transitionsBuilder: (context, animation1, animation, child) =>
Stack(
children: <Widget>[background, child],
));
}