Lukas Mirbt

Results 9 comments of Lukas Mirbt

#98 prevents accidentally causing a loop but does not address how to log refresh and retry requests. I currently have the following setup: ``` AppClient({ required String baseUrl, required TokenStorage...

Hi! Did you consider the following approach? Since `ShellRoute` builds `AppScaffold` and `NavListScreen` as a shell around `secondaryBody`, the state is maintained when navigating. ``` // Nav1 branch StatefulShellBranch( initialLocation:...

Out of curiosity, do you typically write (widget) tests for initial Bloc events? > You can test that in widget tests of i.e. your page, that the correct event is...

> When I write widget tests, I would rather test what happends in what state. But you can for sure also test which event you have called when providing it,...

> I would use get_in in real app, that way it would work. > Yes, this was just an example from my mind. :D I would use create with get_it...

> Generally, I agree with @tenhobi's suggestions to test the initial event is added in your widget tests since this functionality of part of the widget tree (not the bloc...

Something similar to the `TestableBlocProvider` implementation below would enable writing widget tests like this: ```dart class MockCounterBloc extends MockBloc implements CounterBloc {} void main() { group(CounterPage, () { late CounterBloc...

> Please check https://pub.dev/packages/cronet_http#use-embedded-cronet and cronets general documentation. Hi! Yes, as mentioned: > Cronet can be embedded as a workaround but in my opinion it's quite a big footgun that...

> I think providing the fallback would be helpful, but maybe opt-in rather by default. Developers should have a chance to realize what they are doing is rely on a...