Ryan

Results 30 comments of Ryan

> Hi Ryan, > > what would be the advantage to https://pub.dev/documentation/get_it_mixin/latest/get_it_mixin/GetItMixin/pushScope.html ? > > So far get_it doesn't have a Flutter dependency which I did not want to change....

> I agree, a separate package would make sense for that. > Also about the readme on this in the get_it_mixin. Maybe you could make a PR on that ;-)...

This sounds related to https://github.com/tomgilder/routemaster/issues/4. Using the example that you have defined there, I wonder if this could be solved by allowing RouteMap to accept a builder @tomgilder. ```dart final...

I would be more than happy to take this one.

Guards definitely make sense if you would like to perform validation inside of the guard.

> Here's the scenario that I find hard to figure out: > > 1. You have a `Guard` that takes an async method that takes 3 seconds to return >...

> > I'm not sure it's the responsibility of the library to display loading > > Absolutely, I'd never add this to the library - it'll be up to the...

> But I'd love any specific scenarios that would be unachievable without async. Sure: basically any authorization/authentication call to a remote data source (API) or a local data source (shared...

Continuing your thought process on https://github.com/tomgilder/routemaster/issues/19#issuecomment-831226973, I really like the idea of deprecating guards in favor of just being able to return a Redirect or MaterialPage when declaring routes. ```dart...

@rrousselGit I can confirm that both are available: ```bash dart --version && flutter --version Dart SDK version: 2.16.0 (stable) (Mon Jan 31 15:28:59 2022 +0100) on "windows_x64" Flutter 2.10.0 •...