graphql_flutter 3.1.0 copy "graphql_flutter: ^3.1.0" to clipboard
graphql_flutter: ^3.1.0 copied to clipboard

outdated

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.

example/lib/main.dart

import 'package:flutter/material.dart';
import './graphql_bloc/main.dart' show GraphQLBlocPatternScreen;
import './graphql_widget/main.dart' show GraphQLWidgetScreen;
import 'fetchmore/main.dart';

void main() => runApp(
      MaterialApp(
        title: 'GraphQL Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: Builder(
          builder: (BuildContext context) => Scaffold(
                appBar: AppBar(
                  title: const Text('GraphQL Demo App'),
                ),
                body: Center(
                  child: Column(
                    children: <Widget>[
                      RaisedButton(
                        child: const Text('GraphQL BloC pattern'),
                        onPressed: () {
                          Navigator.push(
                            context,
                            MaterialPageRoute<GraphQLWidgetScreen>(
                              builder: (BuildContext context) =>
                                  GraphQLBlocPatternScreen(),
                            ),
                          );
                        },
                      ),
                      RaisedButton(
                        child: const Text('GraphQL Widget'),
                        onPressed: () {
                          Navigator.push(
                            context,
                            MaterialPageRoute<GraphQLWidgetScreen>(
                              builder: (BuildContext context) =>
                                  const GraphQLWidgetScreen(),
                            ),
                          );
                        },
                      ),
                      RaisedButton(
                        child: const Text('Fetchmore (Pagination) Example'),
                        onPressed: () {
                          Navigator.push(
                            context,
                            MaterialPageRoute<FetchMoreWidgetScreen>(
                              builder: (BuildContext context) =>
                                  const FetchMoreWidgetScreen(),
                            ),
                          );
                        },
                      ),
                    ],
                  ),
                ),
              ),
        ),
      ),
    );
862
likes
35
pub points
99%
popularity

Publisher

verified publisherzino.company

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

connectivity, flutter, gql, graphql, meta, path, path_provider, rxdart

More

Packages that depend on graphql_flutter