Skip to content

Instantly share code, notes, and snippets.

@ookami-kb
Created June 15, 2020 19:00
Show Gist options
  • Save ookami-kb/c6c54d382c22738adb8b7f7ff2ba71e4 to your computer and use it in GitHub Desktop.
Save ookami-kb/c6c54d382c22738adb8b7f7ff2ba71e4 to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) => MultiProvider(
providers: [
Provider<RestClient>.value(value: _restClient),
Provider<MessagesRepository>.value(value: _messagesRepository),
Provider<ThreadDataLayer>.value(
value: ApiThreadDataLayer(
_restClient,
() => _imageUrlProvider.baseImageUrl().first,
),
),
],
child: …
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment