Make custom transition transparent so we dont need a 'background'

This reduces the animation overhead and cleanup the code.
This commit is contained in:
Ricardo Markiewicz
2019-07-02 10:02:37 -03:00
parent a9453903e8
commit 8ab8692bbb
4 changed files with 19 additions and 26 deletions
+1 -10
View File
@@ -90,16 +90,7 @@ class _HomePageState extends State<HomePage> {
onPressed: () {
buttonRect = RectGetter.getRectFromKey(globalKey);
print(buttonRect);
var page = AddPageTransition(
background: widget,
page: AddPage(
buttonRect: buttonRect,
),
);
Navigator.of(context).push(page);
Navigator.of(context).pushNamed('/add', arguments: buttonRect);
},
),
),