|
|
@ -67,21 +67,31 @@ Future runNeon({ |
|
|
|
providers: [ |
|
|
|
providers: [ |
|
|
|
Provider<GlobalOptions>( |
|
|
|
Provider<GlobalOptions>( |
|
|
|
create: (final _) => globalOptions, |
|
|
|
create: (final _) => globalOptions, |
|
|
|
|
|
|
|
dispose: (final _, final globalOptions) => globalOptions.dispose(), |
|
|
|
), |
|
|
|
), |
|
|
|
Provider<AccountsBloc>( |
|
|
|
Provider<AccountsBloc>( |
|
|
|
create: (final _) => accountsBloc, |
|
|
|
create: (final _) => accountsBloc, |
|
|
|
|
|
|
|
dispose: (final _, final accountsBloc) => accountsBloc.dispose(), |
|
|
|
), |
|
|
|
), |
|
|
|
Provider<PushNotificationsBloc>( |
|
|
|
Provider<PushNotificationsBloc>( |
|
|
|
create: (final _) => pushNotificationsBloc, |
|
|
|
create: (final _) => pushNotificationsBloc, |
|
|
|
|
|
|
|
dispose: (final _, final pushNotificationsBloc) => pushNotificationsBloc.dispose(), |
|
|
|
), |
|
|
|
), |
|
|
|
Provider<FirstLaunchBloc>( |
|
|
|
Provider<FirstLaunchBloc>( |
|
|
|
create: (final _) => firstLaunchBloc, |
|
|
|
create: (final _) => firstLaunchBloc, |
|
|
|
|
|
|
|
dispose: (final _, final firstLaunchBloc) => firstLaunchBloc.dispose(), |
|
|
|
), |
|
|
|
), |
|
|
|
Provider<NextPushBloc>( |
|
|
|
Provider<NextPushBloc>( |
|
|
|
create: (final _) => nextPushBloc, |
|
|
|
create: (final _) => nextPushBloc, |
|
|
|
|
|
|
|
dispose: (final _, final nextPushBloc) => nextPushBloc.dispose(), |
|
|
|
), |
|
|
|
), |
|
|
|
Provider<Iterable<AppImplementation>>( |
|
|
|
Provider<Iterable<AppImplementation>>( |
|
|
|
create: (final _) => appImplementations, |
|
|
|
create: (final _) => appImplementations, |
|
|
|
|
|
|
|
dispose: (final _, final appImplementations) { |
|
|
|
|
|
|
|
for (final app in appImplementations) { |
|
|
|
|
|
|
|
app.dispose(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
), |
|
|
|
), |
|
|
|
Provider<PackageInfo>( |
|
|
|
Provider<PackageInfo>( |
|
|
|
create: (final _) => packageInfo, |
|
|
|
create: (final _) => packageInfo, |
|
|
|