I'm having the following problem: E/flutter ( 7144): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: Bad state: Insecure HTTP is not allowed by platform: http://myIPv4:PORT/PATH.

And this is the backend that I can access:

I already allowing the access by cors, but not even this help me. I already tried to use the http://localhost:port/path and http://myIP:port/path but doesn't worked!
But if I try access directly by browser so work.

This behavior can be bypassed by following the migration guide: https://flutter.dev/docs/release/breaking-changes/network-policy-ios-android .
or... Just add android/app/src/main/AndroidManifest.xml:
android:usesCleartextTraffic="true" to <application /> also don't forget to take INTERNET PERMISSION :
<uses-permission android:name="android.permission.INTERNET" /> <!-- This Line --> <application android:name="io.flutter.app.FlutterApplication" android:label="receipt" android:usesCleartextTraffic="true" <!-- This Line --> android:icon="@mipmap/ic_launcher">Allow insecure/HTTP requests globally in your app on iOS, you can add this to your ios/Runner/info.plist under the main dictionary definition:
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>Please note that you will need to have an explanation for the Apple review team when enabling this, otherwise your app will be rejected upon submission.
Thanks.
This problem is solved here.
https://flutter.dev/docs/release/breaking-changes/network-policy-ios-android
You just need to change the HTTP to HTTPS. Like this
Response response = await get('https://worldtimeapi.org/api/timezone/Africa/Nairobi');