We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I initialize my app while holding the splash screen up and most importantly before runApp
runApp
void main() async { FlutterError.demangleStackTrace = (stack) { if (stack is stack_trace.Trace) { return stack.vmTrace; } if (stack is stack_trace.Chain) { return stack.toTrace().vmTrace; } return stack; }; final widgetsBinding = WidgetsFlutterBinding.ensureInitialized(); web.usePathUrlStrategy(); FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding); final container = ProviderContainer(); final initializer = container.read(initializeApplicationProvider); final result = await initializer(); if (result.isFailure) { exit(0); } widgetsBinding.scheduleAttachRootWidget( widgetsBinding.wrapWithDefaultView( ProviderScope( parent: container, child: const Application(), ), ), ); await Future.microtask(widgetsBinding.scheduleWarmUpFrame); FlutterNativeSplash.remove(); }
ProviderScope parent will get deprecated (see issue 3261)
ProviderScope
parent
provide a way to inject in ProviderScope the providers from a ProviderContainer
ProviderContainer
The text was updated successfully, but these errors were encountered:
Use UncontrolledProviderScope here
UncontrolledProviderScope
Sorry, something went wrong.
rrousselGit
No branches or pull requests
use case
I initialize my app while holding the splash screen up and most importantly before
runApp
code sample
problem
ProviderScope
parent
will get deprecated (see issue 3261)proposal
provide a way to inject in
ProviderScope
the providers from aProviderContainer
The text was updated successfully, but these errors were encountered: