Comments (5)
I am running with this error if you have found some solution please tell me.
from chat-app-flutter.
Hi, sorry for the late response. I'm not sure what's the problem is. If you have found any solution for that please do post it. And I'm planning to rewrite the whole app using rest API rather than GraphQl.
from chat-app-flutter.
For me there was an issue with flutter and the locked version of graphql. So I had to update the version. And there are many modifications in the API. Maybe that's the reason for the error.
from chat-app-flutter.
I have updated the code now. Now it mostly shouldn't throw any error.
from chat-app-flutter.
i resolved this issue and its 100% working just try it
body:Query(
options: QueryOptions(
document: gql(readCountriesQuery)),
builder: (QueryResult result, { VoidCallback? refetch, FetchMore? fetchMore }) {
if (result.hasException) {
return Text(result.exception.toString());
}
if (result.isLoading) {
return const Text('Loading');
}
if (result.data == null) {
return const Text('No repositories');
}
return ListView.builder(
itemCount: result.data?['continents'].length,
itemBuilder: (context, index) {
var data = result.data?['continents'][index]['name'];
var code = result.data?['continents'][index]['code'];
return Card(
child: ListTile(
leading: Text(code),
title: Text(data),
));
});
},
)
from chat-app-flutter.
Related Issues (8)
- Broken Link in README HOT 1
- Why you are not publishing this on play store? HOT 1
- Issue pertaining with frontend and backend connection HOT 2
- lib/src/app.dart:21:27: Error: A value of type 'AppState' can't be assigned to a variable of type 'Widget'.
- Error Object.noSuchMethod when Tried calling: []("login") or Tried calling: []("register") HOT 3
- Fails on iOS HOT 5
- Under which licence this code is provided ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chat-app-flutter.