Using 10.0.2.2 instead of localhost or 127.0.0.1 make sense when you are using emulator.But It’s expected that you can’t connect to the localhost being not in the same network. You can share hotspot from your desktop, connect mobile to it and use your IP in this network (most probable 192.168.137.1) instead of localhost. Or find another variant. So for our application end points(laravel) http://192.168.0.243:8000/api/v1/products/popular In…
Category: Flutter Error
Null check operator used on a null value | Getx get_state
If you forget to inject controller in Getx flutter, then you will get below error So all you need to do is to inject the controller (dependency injection)before you run your MaterialApp() In the above photo you can see that, I am using Get.lazyPut() to inject the DataClass controller.
Flutter: unable to get local issuer certificate HandshakeException: Handshake error in client
Solution 1 Calling MyHttpOverrides() may help you. But should it should be only used in development mode. This should be used while in development mode, do NOT do this when you want to release to production, the aim of this answer is to make the development a bit easier for you, for production, you need to fix your…
Sharedpreferences Unhandled Exception: Null check operator used on a null value
You get this error because you are not binding sharedpreferences with flutter engine before the app runs. To get rid of the error just simply put before run(MyApp());
Flutter Webview doesn’t load or white blank page iOS and Android
If your flutter webview (based on webview_flutter) doesn’t load or you constantly see blank white page, Then you need to do the following settings. For iOS In your Info.plist add the below lines With the first key, you can view the page on flutter app, with second and third keys, you are letting insecure url…
PlatformException(unregistered_view_type, trying to create a view with an unregistered type, unregistered view type: ‘plugins.flutter.io/webview’)
If you encounter this error two ways to solve this issue Try to run the commands below After that delete the app and run This should have help you to solve the error. 2. The other way, you can try is to change the webview_flutter version.In this case, you still have to do the things…
Pubspec.yaml error A package may not list itself as a dependency.
You get this error if you try to install a package. It happens if your project name is same as your flutter dependency name. In my case I was installing flutter_bloc and my project name was flutter_bloc too. So I got error pubspec.yaml: A package may not list itself as a dependency.
Flutter unimplemented handling of missing static target
It happens when the stateful widgets suddenly become stateless. All you need to do is to restart your app. And you would be good to go. Learn Building a Video Player