mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 22:07:55 -06:00
WIP - Provider refactorings
This commit is contained in:
@@ -44,9 +44,10 @@ class SettingsPage extends StatelessWidget {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (ctxt) => BlocProvider.value(
|
||||
value: BlocProvider.of<ApplicationSettingsCubit>(context),
|
||||
child: page),
|
||||
builder: (context) => BlocProvider.value(
|
||||
value: context.read<ApplicationSettingsCubit>(),
|
||||
child: page,
|
||||
),
|
||||
maintainState: true,
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user