kalismeras61 / flutter_page_transition

This is Flutter Page Transition Package
BSD 2-Clause "Simplified" License
471 stars 56 forks source link

Change child to builder #29

Open Ascenio opened 3 years ago

Ascenio commented 3 years ago

With MaterialPageRoute you have a builder function, so the page may make use of it. However, currently the API of this package makes usage of a child argument which does not provide the same funcionality as a builder would. I recommend to keep child for now, but make sure to mark it as @deprecated to inform the user, and add a builder argument.