Questions tagged [flutter-graphql]
37 questions
0
votes
1 answer
How can I solve this Flutter GraphQL null safety error?
I'm trying to use graphql_flutter's Subscription widget but my app fails to compile. I keep getting a null safety error:
Error: The argument type 'Widget Function({dynamic error, bool loading, dynamic payload})' can't be assigned to the parameter…

Omojola Samson
- 1
- 1
0
votes
0 answers
Resizing flutter views with GraphQL subcriptions results in request spam
I have an issue with flutter + GraphQL while using subscriptions. I'm using a web backend for flutter, and whenever the view is resized, this causes the subscription to be canceled and remade, spamming my backend with requests.
This makes sense…

Alex Recarey
- 20,178
- 4
- 25
- 22
0
votes
1 answer
Stopping a function in flutter
I am new to flutter and I have a problem with a flutter function. It adds data to graph and I programmed a button to start updating the graph. How do I stop it? I created another button and I want to program it to stop the function that adds the…

La Forge1071
- 71
- 8
0
votes
1 answer
flutter_graphql doesn't work and always return null after app build
I'm new to flutter and graphql
I'm trying to develop an app to consume backend api hosted on heroku
during development and while testing the app on my Samsung Note 5, the app connects successfully to the backend and I can fetch data from query and…

m.a
- 61
- 1
- 5
0
votes
0 answers
flutter Graphql Login
Future login() async
{
insert (
{
"username": useremail.text,
"password": password.text
}
);
x = await result.data.toString();
if(x == null) {
_showInSnackBar("somthing went wrong");
}
…

Murshid Ahamed
- 1
- 1
0
votes
3 answers
Flutter test GraphQL query
I want to test my GraphQL Query. I have my GraphQL client, and I use a remote datasource to do my requests.
class MockGraphQLClient extends Mock implements GraphQLClient {}
void main() {
RemoteDataSource RemoteDataSource;
MockGraphQLClient…

Kol2gaR
- 202
- 2
- 13
0
votes
0 answers
Cached data or Using storage in flutter?
I have a backend server with graphql.
And on flutter startup, I call query to backend for initial data.
This initial data needs in every screen. So how can I save and use this data in my app?
I am using graphql_flutter.
So first option will be…

freewebwithme
- 429
- 12
- 22