Questions tagged [flutter-http]
241 questions
0
votes
2 answers
Flutter RSS Feed XML Request Issue
Can anyone please advise what is going wrong? As far as I can this code is correct but I can't understand where i'm getting this XMLHttpRequest error in bash.
I originally followed this - https://www.youtube.com/watch?v=F0xh7LMr_V0 and I have also…

Bridget Sarah
- 33
- 5
0
votes
1 answer
How to sent image in 'application/octet-stream' content type to Azure Cognitive Services in flutter
Hi I'am trying to sent a local image using application/octet-stream' content type to Azure Cognitive Services from flutter.
I have follow the following but it seem to be missing the example. The only example is for 'application/json'
Future…

Azri
- 85
- 1
- 8
0
votes
1 answer
Flutter http.get not getting body data
I am trying to get the data from my json feed which is this Json
But when I try to use the body result it is not working ( but it works with other jsons like this one https://jsonplaceholder.typicode.com/users), my code looks like this:
import…

Alfonso Mora De la Calle
- 91
- 1
- 9
0
votes
2 answers
Showing progress bar until image loads. Flutter
I want to make a register screen with captcha and the api I am using is sending the raw image bytes and in header a secret value to validate the captcha. I want to take the bytes from http.get and show them to image.memory in my register screen and…
user14662023
0
votes
2 answers
Flutter web Http post request not working using http package
Making http post request fails on flutter web. I am using http package for making request here is my code:
http.post(
'http://x.x.x.x:5000',
headers: {
"Access-Control-Allow-Origin": "*", // Required for CORS…

Mateen Kiani
- 2,869
- 2
- 19
- 29
0
votes
1 answer
Why I'm Getting this error while Using Flutter Post Method
I'm trying to create a login system Using Post Method But I'm getting Error
I tested it with postman using it works like a charm.
I Tried Other Things but can't be able to solve this error. if someone here can solve my problem it would be…
user14581222
0
votes
2 answers
How do i create event listener for Json object in Flutter gridview
i would like to know how i can listen to json objects in my gridview so that i can use them for navigation logic.Forexample picking a category id of a gridview item and using it to display it's respective data or items in the next page.

mark nestor
- 19
- 6
0
votes
1 answer
Flutter: jsonEncode for a List
I am trying to jsonEncode a list in Flutter.
List _list = ["name1", "name2"]
Things I tried:
jsonEncode(_list);
jsonEncode(_list.map((e) => e.toString()).toList());
This gives me a Json String however the data I get…

Ali Solanki
- 640
- 7
- 16
0
votes
0 answers
Sending http patch request with list of maps in flutter
I have a class StyleItem, which looks like following:
class StyleItem {
String id;
double dx;
double dy;
double scale;
double rotation;
StyleItem({this.id, this.dx, this.dy, this.scale, this.rotation});
Map toJson() {
return {
…

Kartik Pant
- 31
- 3
0
votes
1 answer
Auto update flutter application with membership details
I am new to mobile development. I am developing a flutter application which has a web version. Users have memberships in that application. When ever a user cancels or activates a membership through web, I want that information to be updated in…

imacoder
- 166
- 1
- 11
0
votes
1 answer
Unhandled Exception: type 'List' is not a subtype of type 'List'
I'm struggling to see how these type errors could be resolved in Flutter.
I am making an HTTP request to a server which responds with the following JSON:
{
"message": "The given data was invalid.",
"errors": {
"email": ["Email is required"]
…

Stephan-v
- 19,255
- 31
- 115
- 201
0
votes
2 answers
Best practice to do an http request to receive JSON and display it within a list view in flutter
I am working on network requests within flutter using the flutter http package.
So far I have a welcome screen and a network helper.
The welcome screen has a scaffold with a list view and a bottom bar.
The list view will show text and an image per…

user2684521
- 380
- 4
- 20
0
votes
2 answers
Flutter http exception not throw on another try catch block
I get into this weird exception which keeps on coming and freezing my app.
I am try to handle SocketException and TimeOutException in http package with provider package.
class Auth with ChangeNotifier{
..........
Future getUser(String id)…

Nikhil kumar
- 191
- 1
- 3
- 13
0
votes
2 answers
http Dart package examples are outdated, how to use client.get()
Here's the second example given by the http package: https://pub.dev/packages/http
var client = http.Client();
try {
var uriResponse = await client.post('https://example.com/whatsit/create',
body: {'name': 'doodle', 'color': 'blue'});
…

Shayan
- 709
- 1
- 15
- 31
0
votes
1 answer
Bringing SSL certificate bye[] array from jni to flutter
I'm performing certificate pinning in flutter by securely storing the certificate in JNI and fetching it during run time. But I get BAD_PKCS12_DATA(pkcs8_x509.c:626), errno = 0) when I fetch the data from JNI. The pinning works if I set it directly…

Vijai
- 1,067
- 2
- 11
- 25