Questions tagged [flutter-graphql]

37 questions
1
vote
1 answer

DioErrorType.RESPONSE invalid media type

My flutter project runs well on android but when trying to get it to web I get some troubles. I am using Graphql Faker as fake backend and it works well for android but for flutter web it always throw below error ╔╣ Request ║ POST ║ …
Nux
  • 5,890
  • 13
  • 48
  • 74
1
vote
4 answers

Package is not showing up in the dart packages folder even though it is installed

I have been having issues with installing this package https://pub.dev/packages/graphql_flutter/install one of it's dependencies is this graphql package https://pub.dev/packages/graphql. When i do pub get it installs en shows everything expect for…
0
votes
0 answers

GraphQL Flutter Upload File Not Working - Converting object to an encodable object failed: Instance of 'MultipartFile'

I am trying to upload a file for my given Graphql mutation in Flutter. static String uploadSelfieMutation = r''' mutation uploadPLSelfie($loanId: String!, $file: Upload!) { uploadPLSelfie(loanId: $loanId, file: $file) { …
0
votes
0 answers

creating banner slider shopify storefront api graphql

Hello Guys i have two question about Shopify Storefront graphql api Iam developing a flutter app based on shopify graphql api and trying to create a carousel banner / Image Slider / Slideshow Images inside the app but after long search i…
0
votes
0 answers

How to do HTTP-Only Cookie based authentication using flutter and graphql api

I am currently using graphql_flutter: ^5.1.2 for fetching Graphql api. On the host server there is used httponly cookie based authentication. In react there is http only option for cookie but on graphql_flutter i can't find any option like that . I…
0
votes
0 answers

How to implement proper authentication with graphql and flutter?

I am trying to implement login authentication with graphql in flutter not sure how to proceed, plus I keep getting an error: The body might complete normally, causing null to be returned but the return type 'future or bool' is potentially…
0
votes
1 answer

How can i add a graphical represntation of the data in spline chart form

enter image description here I want to add this to my Flutter app, how can I achieve this the data model that I am collecting is: amount: 5.123 category: Health date: 08-Feb-2023 23:45 PM This is the form of data which I am storing in the firebase
0
votes
0 answers

Flutter dart get continuous data from on changed function using future provider

I want to add search functionality from Api. It is a backend search, so I get data continuous when clicked on on-changed function. I use future provider to get data. Please tell how can I achieve that. Here Is my design what I want to do. Ui Image…
0
votes
1 answer

How to parse a graphql response in flutter using flutter_graphql plugin

I am post data using graphql mutation. What i want to do is parse response data and use on widget on my flutter app. How can I get parse response data from graphql mutation here is my code ` class RegisterService { final String name, phone, email,…
user20509411
0
votes
1 answer

how to catch parsedResponse in linkException?

In the above error, I tried to get the parsedResponse and add handling for the statusCode, but I couldn't catch the error. The linkException doesn't seem to recognize the parsedResponse. If you know a solution, please let me know. thank you Below…
0
votes
0 answers

How to pick files or Images from PC or Gallery using universal_io package for flutter web?

Is there any GraphDeveloper?...I am working on a project and got stuck on a problem that when i user dart:io package I open picker = ImagePicker(); images get displayed on web with uint8List inside the ListView.builder. But when i try to upload them…
0
votes
0 answers

How to call graphql query X number of times with different variable values in flutter?

I am using graphql_flutter: ^5.1.0 from pub.dev. Its very easy and helpful. I am able to make queries and mutations easily in it. The only problem is now I am in a situation where I am supposed to call a search query again and again everytime the…
Cassius
  • 353
  • 3
  • 16
0
votes
1 answer

Flutter GraphQl query does not return current data

I am a little bit confused on why a GraphQL query returning a list of items does not get updated. Say I have a list of three items, then I add another item and rebuild the widget. The widget still only shows the first three items, even though I can…
Wckd_Panda
  • 53
  • 1
  • 8
0
votes
1 answer

GraphQl subscription throwing exception when subscribing with Apollo server flutter

GraphQl subscription throwing exception "web socket connect failed" when subscribing with Apollo server. Subscription is working fine with graphQl explorer but failing when implemented in flutter Code and exceptions are attached below. **********…
0
votes
1 answer

How to pass enum value in hasura query in flutter

So I am trying to query data from hasura but one of the variable that I am passing is a variable due to which it always gives some error I tried many different solutions like this but no solution so far this is the query query MyQuery…
Neelay Srivastava
  • 1,041
  • 3
  • 15
  • 46