mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-21 05:38:42 -04:00
clean up context locators
This commit is contained in:
parent
751022e743
commit
2ccad50f9a
31 changed files with 603 additions and 542 deletions
|
@ -131,9 +131,8 @@ class VeilidChatApp extends StatelessWidget {
|
|||
PreferencesCubit(PreferencesRepository.instance),
|
||||
),
|
||||
BlocProvider<AccountRecordsBlocMapCubit>(
|
||||
create: (context) =>
|
||||
AccountRecordsBlocMapCubit(AccountRepository.instance)
|
||||
..follow(context.read<UserLoginsCubit>())),
|
||||
create: (context) => AccountRecordsBlocMapCubit(
|
||||
AccountRepository.instance, context.read)),
|
||||
],
|
||||
child: BackgroundTicker(
|
||||
child: _buildShortcuts(
|
||||
|
@ -141,7 +140,7 @@ class VeilidChatApp extends StatelessWidget {
|
|||
builder: (context) => MaterialApp.router(
|
||||
debugShowCheckedModeBanner: false,
|
||||
routerConfig:
|
||||
context.watch<RouterCubit>().router(),
|
||||
context.read<RouterCubit>().router(),
|
||||
title: translate('app.title'),
|
||||
theme: theme,
|
||||
localizationsDelegates: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue