@cassiuspacheco
Brazilian Software Engineer living in Australia 馃嚙馃嚪 馃嚘馃嚭 | Dart | Flutter | Swift | iOS
My life changed in 2011 when I fell in love with iPhone and started working as an iOS Developer.
I'm passionate about clean and effective code, code review, organisation, agile work, sharing knowledge and experiences, but above all I'm passionate about building awesome products.
Nothing here yet.
Hello, thanks for the feedback! About routing, you really want to keep the logic about where and how you're navigating to in the view model, so you can unit test it as well as have complex routing systems depending on user interactions, like you mentioned, after an API call, for example. Now, you don't want to access widgets, context, Navigators, etc in the view model, you only want the pure logic in there, such as the routing logic. If you want a spoiler of the next post showing how I do it, have a look at the part 2 of the series code https://github.com/CassiusPacheco/flutter_mvvm/commit/fbd7237ed1f08993becf16ff7a80ec6aacee044f The post explaining it will be coming up soon. Hope that helps!