Git Product home page Git Product logo

Comments (5)

shahidAnwarrr avatar shahidAnwarrr commented on July 25, 2024

I am running with this error if you have found some solution please tell me.

from chat-app-flutter.

vineeshvk avatar vineeshvk commented on July 25, 2024

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.

vineeshvk avatar vineeshvk commented on July 25, 2024

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.

vineeshvk avatar vineeshvk commented on July 25, 2024

I have updated the code now. Now it mostly shouldn't throw any error.

from chat-app-flutter.

mohammadwadhodev avatar mohammadwadhodev commented on July 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.