Make custom transition transparent so we dont need a 'background'
This reduces the animation overhead and cleanup the code.
This commit is contained in:
@@ -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);
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user