Bowman74 / fmvvm

An MVVM framework for creating Flutter apps
MIT License
19 stars 7 forks source link

Using amimation for MaterialPageRoute #16

Open pishguy opened 5 years ago

pishguy commented 5 years ago

i think we can't use animation for MaterialPageRoute to use transitions, for example like with android

please see this link which that implemented on Flutter

https://github.com/divyanshub024/Flutter-page-route-transition

now my question is how can i use this library to make transitions?

Bowman74 commented 5 years ago

@MahdiPishguy This is why you can create your own implementation of the navigaitonservice and use that. In your custom implementation of the navigationservice you could use that library or really do anything else you wanted.

Let me know if you need any help telling the framework to use a custom implementation of the navigationservice.

pishguy commented 5 years ago

@Bowman74 thanks, could you take a sample how can i implementing this feature?

SzunTibor commented 4 years ago

@MahdiPishguy Guess its a bit late now, but while buildRoute returns MaterialPageRoute, getRoutes returns just a Route, so you can write your own ie buildAnimatedRoute which can return an extended PageRouteBuilder, like in that blog.