You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got blank page if i try sample code both InAppBrowser and ChromeSafariBrowser.
console notifications
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized.
If you're running an application and need to access the binary messenger before `runApp()` has been called (for example, during plugin initialization), then you need to explicitly call the `WidgetsFlutterBinding.ensureInitialized()` first.
If you're running a test, you can call the `TestWidgetsFlutterBinding.ensureInitialized()` as the first line in your test's `main()` method to initialize the binding.
Expected behavior:
Sample work like gif
Current behavior:
I got blank page
How to fix
Both InAppBrowser and ChromeSafariBrowser sample code change void main() => runApp(new MyApp()); to below
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(
new MyApp(),
);
}
I'm pretty new to flatter and sample doesn't work.
Environment
Flutter version: v1.12.13+hotfix.8
Plugin version: ^2.1.0+1
Android version:
iOS version: 11pro
Xcode version: 11.3.1
Device information:
Description
I got blank page if i try sample code both InAppBrowser and ChromeSafariBrowser.
console notifications
Expected behavior:
Sample work like gif
Current behavior:
I got blank page
How to fix
Both InAppBrowser and ChromeSafariBrowser sample code change
void main() => runApp(new MyApp());
to belowhttps://stackoverflow.com/questions/57689492/flutter-unhandled-exception-servicesbinding-defaultbinarymessenger-was-accesse/57703060#57703060
The text was updated successfully, but these errors were encountered: