Skip to content

Instantly share code, notes, and snippets.

@marcossevilla
Created May 4, 2021 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcossevilla/18dc465c0d602eb5509a7233447396a1 to your computer and use it in GitHub Desktop.
Save marcossevilla/18dc465c0d602eb5509a7233447396a1 to your computer and use it in GitHub Desktop.
final client = Dio(BaseOptions(baseUrl: AppConfig.apiUrl));
...
MultiRepositoryProvider(
providers: [
RepositoryProvider(
create: (_) => SomeRepository(
localDataSource: LocalDataSource(box: Box()),
remoteDataSource: RemoteDataSource(client: client),
),
),
],
child: const App(),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment