Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
3 answers
198 views

"HTTP Calls Blocked in Android Release Build from Play Store but Work Fine in Debug and Direct Release Build"

I am developing a Flutter app that works perfectly on iOS in both production and debug modes. However, I am encountering an issue with the Android version of the app. The problem is that HTTP calls to ...
Laurent K's user avatar
0 votes
0 answers
65 views

How to restirct google mapi api key for android app built in flutter. Facing error. How to fix?

I am using package of google maps and google place. When I am restricting my maps api key to android apps by the package name and SHA1 key, the maps are not loading and the search for places which ...
Arnab Ghosh's user avatar
0 votes
0 answers
42 views

How can the URL link after I http get got different in fluttter?

On the previous page, I had a list of news items that worked fine. When I clicked on a news item, it sent an index to fetch the next API post. However, every time I clicked on any item, it always took ...
Amura Maulidi Fachry's user avatar
0 votes
0 answers
428 views

I can't get the user agent for the device to send a http request in my flutter app

I want to get and send the device user agent in my request. I looked for some answers and I got that there is a package that gives the device user agent it is called device_info_plus but the issue ...
SultanKingGD's user avatar
0 votes
1 answer
62 views

How to properly check API null response in Flutter?

Future<List<AlbumList>> _getRecentUpdates() async{ String? schoolId = await SharedPreferencesHelper().getSchoolId(); final url = "${ErpGlobal.getBaseUrl()}${ErpGlobal....
Sumit Singh's user avatar
0 votes
0 answers
56 views

Flutter http get failing due to .substring

Weird one for you today... var url = Uri.parse(myRedactedUrl); try { http.Response response = await http.get(url).timeout(const Duration(seconds: 12)); // Timeout active print(url.toString(...
PlayCulture's user avatar
1 vote
0 answers
68 views

How to solve SocketException: Failed host lookup: 'http_proxy' (OS Error: No such host is known. , errno = 11001)

Iam trying to create and run a flutter desktop application in visual studio 2019, i already select a device that i created in android studio and i still get an error Launching lib\main.dart on sdk ...
Dimas Tengku's user avatar
0 votes
0 answers
199 views

How to fix the error "Failed host lookup: 'viacep.com.br'"

I'm trying to use an API in flutter, but when I call it I get this error. I've tried everything and haven't succeeded. _NativeSocket.lookup.<anonymous closure> (dart:io-patch/socket_patch.dart:...
Leonarda Saad's user avatar
1 vote
1 answer
586 views

Flutter - Reading HTTP response where the response body as JSON file and it is received chunks by chunks through Stream method

I going to read on a large JSON file through a HTTP response, which may take time some to done it and map to the object class Is there any method on flutter that able to stream the HTTP response, ...
Uoel's user avatar
  • 33
3 votes
1 answer
330 views

Which dart HTTP client package(s) can I use to make HTTP Version 3 (HTTP/3) requests?

I intend to use such a package in a Flutter Android/Ios app. So far I have seen the http and http2 packages but none makes mention of HTTP/3.
ekene's user avatar
  • 299
0 votes
1 answer
120 views

Unawaited error in flutter with http package

import 'package:weather_app/models/constants.dart'; import 'package:weather_app/models/weather.dart'; import 'package:http/http.dart' as http; dynamic weatherData(String location) async { var url ...
Yousef Mohamed's user avatar
1 vote
1 answer
466 views

How to send PDF file data to flutter application from golang server through http

I want to send PDF file data from my golang server to flutter application through http. For that I have created one API which read PDF files in bytes format and then convert it into string and which ...
Dhananjay Gahiwade's user avatar
0 votes
2 answers
50 views

How to display the data fetched from API?

I have fetched the details of the planet i.e. (NOM) No. of moons, Gravity and Density from an API. And i have stored these details in an array PlanetInfo. And i want to display it using text widget ...
Shreyas K S's user avatar
0 votes
1 answer
438 views

Flutter Error : Unhandled Exception: RangeError (index): Invalid value: Valid value range is empty: 0

I am trying to fetch data from an API, and although data is fetched for a hardcoded request, I am unable to get it dynamically. It gives the following error: E/flutter (11813): [ERROR:flutter/runtime/...
Aditya Bhat's user avatar
0 votes
1 answer
870 views

What is the default time-out for http requests using the http dart library?

I am using the http dart library to perform REST API requests (GET, POST) to a remote server. When the server is not running the requests time-out. Is there a default time limit for the requests, ...
Kon Syrokostas's user avatar

15 30 50 per page
1
2 3 4 5