Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
77 views

Is there any way to show the unique value in Dropdownbutton list?

My code is : Column( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ ...
Mehedi Hasan Sumon's user avatar
0 votes
1 answer
35 views

How to use the get() functin provided by the http package?

I'm trying to get data from a website that hosts Weather APIs (OpenWeatherMap), but as soon as I use the get() method, I get an error that says : [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] ...
Mikelenjilo's user avatar
0 votes
1 answer
934 views

flutter does not show data from API

When I try to pull data from the jsonplaceholder API and put it on the screen, I don't have any problems, but when I try to change the data in this link (https://reqres.in/api/users?page=2 ) on the ...
MertYavuz's user avatar
0 votes
3 answers
47 views

Among the whole API response string I wants to get only particular word in flutter how to do it?

Below is the response where I am getting image path.the file can be pdf or jpeg or any other format. for image i am showing it in dialogue and for pdf I have to download it to the user's device.For ...
Minal Suryawanshi's user avatar
-1 votes
2 answers
413 views

how to show time in date time picker in flutter..?

suppose you have a API and a key-value for this API is "time": "22:05" i want to show this time in a in a field and when i press the field the date time picker is pop up with time ...
Ali's user avatar
  • 23
-1 votes
2 answers
97 views

why my page route is not working properly?

InkWell( onTap: () { Get.put<DetailsPaymentHistoryController>( DetailsPaymentHistoryController( ...
Mehedi Hasan Sumon's user avatar
-1 votes
1 answer
62 views

How to render API output to UI? It's not rendering inside the scaffold's container

Please someone help. Here is my code. Why is not the output of the API (stored in parse) showing in the UI in the blue container. Thanks. import 'dart:convert'; import 'package:api/model/pin_code.dart'...
Linisha's user avatar
  • 17
0 votes
1 answer
431 views

How to show comments/details of the post according to the post id from an API?

I am trying to retrieve "comments" data from the API. But the main problem is I want to see the comments of the post according to the post I've selected or pressed instead of providing a ...
anish747's user avatar
0 votes
1 answer
161 views

Flutter: Do sort and filter feature in Flutter or the back end?

I am working on the sort and filter feature on my ecommerce application. Things like sort by price low to high, filter by brand name and colour. Where is the best practice to do this feature? Should I ...
typicalCSStudent's user avatar
0 votes
1 answer
45 views

Incorrect use of Parent Data Widget in ListView

There are three tags in a row, which are fetching data from an API, now when the text coming from data is large, the pixels are overflowing , so i want that, when the data comes for first tag, it ...
noob_coder051's user avatar
0 votes
2 answers
131 views

flutter: Unhandled Exception: type 'Null' is not a subtype of type 'String'

I tried to use Moralis API to call NFT via wallet address, but got following error. Unhandled Exception: type 'Null' is not a subtype of type 'String' These are the code lines that were pointed out ...
dev cat's user avatar
0 votes
2 answers
81 views

I get the error 'Unhandled Exception: Converting object to an encodable object failed: Null' in flutter

I am trying to post a JSON to our api but keep getting this error even if all values are NULL and are allowed to be NULL, here is the code snippet that causes the issue. final response = await http....
Loftie Fourie's user avatar
0 votes
1 answer
37 views

how do i fix type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'Iterable<dynamic>'?

i was trying to connect my flutter app to my own api using localhost, i actually got a bit of the data in my debug console but it stoped halfway and showing type '_InternalLinkedHashMap<String, ...
NyK's user avatar
  • 113
0 votes
1 answer
743 views

Filter search filter data showing from Api using provider

how to implement search filter with API using provider? i have post Api when user hit Api it send back data to the user My api Future<List<Searchmodel>>Search(String keyword) async { ...
mark anthony's user avatar
0 votes
1 answer
80 views

i am using django as a backend to flutter

when i get data from API Arabix words doesn't show and it show like this is this from flutter or Django Restframework? flutter request ''' final url = Uri.parse('http://127.0.0.1:8000'); final data ...
mohamed hawas's user avatar
-1 votes
2 answers
216 views

API How to filter item in Flutter? [duplicate]

Response from API: "loan": [ { "id": "612", "icbsid": "55", "loanId": "null", "loanAcctNo&...
Kneelon's user avatar
  • 277
0 votes
1 answer
40 views

api response is perfect but not showing the data in app screen

I want to fetch data from api and showing on app screen but there nothing on screen but a circular progress indicator. if i try to print response.body on consol it works just fine and showing the body ...
Sumon Hasan's user avatar
0 votes
2 answers
105 views

RangeError for list in flutter

I am working on an app that requires me to display images from an API. It has been working fine till today morning. Today I edited some parts to pass the image to another page and tried running it. It ...
kkridhi's user avatar
  • 15
0 votes
2 answers
58 views

how to solve flutter formstate method?

I have this class in flutter abstract class ForgetPasswordController extends GetxController { checkemail(); } class ForgetPasswordControllerImp extends ForgetPasswordController { ...
Raghd Kun's user avatar
1 vote
0 answers
169 views

how to post data in x-www-form-urlencoded format using dart?

I need to post this data in x-www-form-urlencoded format Map<String, dynamic> body = { 'data': [ { 'prefix': '225', 'phone': '1234567890', 'email': '...
Kla's user avatar
  • 11
1 vote
3 answers
2k views

Flutter cant get a response from API

im quite new in flutter and i wanted to build a Reciep app with Edamam Api, but when i tried to print a response, i didnt get any response and showing nothing in my debug console. i didnt know what ...
NyK's user avatar
  • 113
0 votes
1 answer
45 views

Getting a Band-Image using Dart and Flutterr

so i started with a new Screen where the User can input his favorite Band. The Plan is to display an image of this Band underneath the input field after the user clicked the Button "Search" ...
Saladir's user avatar
1 vote
2 answers
1k views

Flutter API keep loading and not showing

So i tried to create a listview of a news with this API https://newsapi.org/s/us-news-api but when i tried to implement it in my App it keeps loading and never show the data. here is my homepage code ...
NyK's user avatar
  • 113
1 vote
1 answer
3k views

"The body might complete normally, causing 'null' to be returned, but the return type, 'FutureOr<List<Article>>', is a potentially non-nullable type."

I was trying to make a News App with newsapi.org, but got this error: The body might complete normally, causing 'null' to be returned, but the return type, 'FutureOr<List<Article>>', is a ...
NyK's user avatar
  • 113
0 votes
1 answer
232 views

Why isn't my API data showing in a list view, when the GET request is successful?

I am working with flutter for the first time and having issues understanding why my data will not show. For context, the API returns a list of (physical) libraries and their current occupancy. I have ...
Usama Saleem's user avatar
1 vote
1 answer
301 views

How to show json data in flutter carousel slider

I am creating a slider where I want to show json data in carousel slider the data will be coming from API ofcourse What are the steps need for that can you guys guide me like have to create http ...
Talal Habib's user avatar
1 vote
1 answer
475 views

Get and post data in flutter with API from Laravel [duplicate]

Can anyone show me how to get and post data with API in flutter? I have tried some flutter API tutorials with Laravel but when I print the value is error cors, something wrong with my flutter code or ...
Denise Aldianto's user avatar
0 votes
1 answer
25 views

How i can show a saved fav items to listViewbuilder above the api response data in Flutter?

I want to save data on click the ListView leading button which I can do through SharedPref but i am facing a problem showing that data with API response and removing that common value and showing the ...
Anas Ayub's user avatar
1 vote
1 answer
1k views

How to pass this 'Dio Post Request' Problem in Flutter

I have to send an object from the request. Although it works on Swagger, I cannot send it from my flutter code. When I was trying it, it always gave me Http status error 400 This problem is coming my ...
Frontends Union's user avatar
3 votes
1 answer
51 views

How would I use JSON formatted as such with flutter? Help working with the Gamebanana api

The Gamebanana api returns data as such for https://api.gamebanana.com/Core/Item/Data?itemtype=Mod&itemid=350538&fields=name%2Cdescription%2CUrl%28%29.sDownloadUrl%28%29&help= [ "...
guiege's user avatar
  • 63
0 votes
1 answer
32 views

_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>'

Hello everyone I need your help I want to display the information from an api and I have an error message that tells me _InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<...
Bondoguy's user avatar
0 votes
1 answer
78 views

Flutter search listview in array index problem

This is my address button code. I want to search for an address in an array of addresses with multiple addresses. But I can't find it. It stuck with index problem in this part. How to call index loop? ...
Ppnncs's user avatar
  • 61
0 votes
1 answer
263 views

Flutter Textformfield search receives data but does not display other data

This is my search code. It works by typing id the codes to display the information. onSearch(String text) async { if (text.isNotEmpty) { List<Item> itemList = []; for (var item in items) { ...
Ppnncs's user avatar
  • 61
0 votes
1 answer
455 views

how can i do to insert an element to an existing object in Dart

"sale": { "id": 3, "name": "COCA" } return (response.data['deliveries'] as List).map((delivery) { List<void> el = delivery['sale']; ...
Rodriguez Diakiese's user avatar
0 votes
1 answer
370 views

flutter fetch data textformfield

This is my search code when i search and show listview how can i want the textformfield outside listview to fetch after complete search? I typed some text into the search box and the data was fetched ...
Ppnncs's user avatar
  • 61
1 vote
0 answers
134 views

Flutter fetch api index

I want to retrieve the next address recount shipto 0 . I can only retrieve shipto 0 . When it comes up with more than 1 address , it will recount shipto 0 . Sorry , I am practicing I can't fetch the ...
Ppnncs's user avatar
  • 61
0 votes
1 answer
653 views

i cant figure out why this error type 'Null' is not a subtype of type 'int' in type cast

Flutter 3.3.9 • channel stable • https://github.com/flutter/flutter.git Framework • revision b8f7f1f986 (hace 2 semanas) • 2022-11-23 06:43:51 +0900 Engine • revision 8f2221fbef Tools • Dart 2.18.5 • ...
rroviedo's user avatar
0 votes
1 answer
436 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
119 views

Is there a way to get sha1 fingerprint and/or package name to send it via API in runtime?

What I need to know is a way to get SHA1 fingerprint and package name to autenticate an user via API, like this: ` void main(){ postMethod(Uri url, {required Map<String, dynamic> header}){} ...
Marcos Vieira's user avatar
0 votes
1 answer
1k views

How to read data from Api using getx Obx

lateinitialization error shows on the first loading of screen.datas are only getting after i hot reload my app.please help me to solve this issue. It is an api to get details of a single actor. I want ...
Nishan Rasheed's user avatar
0 votes
1 answer
99 views

How to handle json api arrays in flutter

I am getting data from newsapi for my flutter app. How to get the id of the source in this json data? { "status": "ok", "totalResults": 38,
 "articles": [ 
{ 
...
Aadhil's user avatar
  • 13
0 votes
1 answer
267 views

Flutter RangeError (index): Invalid value: Only valid value is 0: 2

I can't fetch the initial default address 0 in the next username. It is often a problem when a large number of addresses are found in the list of addresses. after some fixes type 'sting' is not a ...
Ppnncs's user avatar
  • 61
2 votes
1 answer
507 views

DioError [DioErrorType.response]: Http status error [504]

There's an error in my flutter app DioError [DioErrorType.response]: Http status error [504] I don't know why it shows 504 as what I know before, 504 means Gateway Timeout, why it took a long time to ...
1988's user avatar
  • 339
0 votes
1 answer
43 views

Flutter - loop not working while parsing json

I am trying to create model and parse json data from api for that i created the model class you can see below class FeatureModel { String? PlanFeatures; bool? FeatureStatus; FeatureModel({this....
user avatar
0 votes
1 answer
31 views

Flutter model json

How do I retrieve the information in the address? Attempted to retrieve information I can fetch but the Items class part is not fetching the address part. I'm practicing the fetch api. I'm not sure if ...
Ppnncs's user avatar
  • 61
0 votes
1 answer
22 views

comparing a complex api in a gridview builder to get a specific key

I am trying to get a specific id from this complex api: http://ddragon.leagueoflegends.com/cdn/12.22.1/data/en_US/champion.json however everytime i try to get it from my code it gives the RangeError. ...
moosiker's user avatar
1 vote
3 answers
50 views

i have problem how to call data api based on parameters in flutter

i want to call data api based on the selected parameters, but i'm having a bit of trouble and this has been going on for a few days and it's still not done. this is the api you want to fetch data ...
sharon's user avatar
  • 403
-1 votes
1 answer
46 views

How to parse json list into a string - Tweak the code so that I can display a single Json, just as I can display a List of Json

I am getting this error: A value of type 'UserModel' can't be assigned to a variable of type 'List<UserModel>'. I am using Postman to generate my api service code (http request that get api ...
Saad Mansoor's user avatar
0 votes
1 answer
778 views

Flutter use api and webhook

i wanna work with this api in my flutter app https://dev.chargily.com/docs/epay-api/ i have done the first part 1.Make Payment but the second part 2. Payment confirmation i don't know how to do it ...
anikki00's user avatar

1
2 3 4 5
16