fquery 3.0.0 copy "fquery: ^3.0.0" to clipboard
fquery: ^3.0.0 copied to clipboard

Simple yet powerful async state management solution with in-built caching

example/lib/main.dart

// ignore_for_file: public_member_api_docs, sort_constructors_first

import 'package:basic/pages/home.dart';
import 'package:basic/pages/infinity_page.dart';
import 'package:basic/pages/posts_page.dart';
import 'package:flutter/cupertino.dart';
import 'package:fquery/fquery.dart';
import 'package:fquery_core/fquery_core.dart';
import 'pages/todos_page.dart';

final queryCache = QueryCache();

void main() {
  runApp(const App());
}

class App extends StatelessWidget {
  const App({
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return CacheProvider(
      cache: queryCache,
      child: CupertinoApp(
        debugShowCheckedModeBanner: false,
        initialRoute: '/',
        theme: const CupertinoThemeData(
          brightness: Brightness.light,
        ),
        routes: {
          '/': (context) => const Home(),
          '/todos': (context) => const TodosPage(),
          '/posts': (context) => const PostsPage(),
          '/infinity': (context) => const InfinityPage(),
        },
      ),
    );
  }
}
81
likes
145
points
6k
downloads

Publisher

unverified uploader

Weekly Downloads

Simple yet powerful async state management solution with in-built caching

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

collection, flutter, flutter_hooks, fquery_core, freezed, freezed_annotation

More

Packages that depend on fquery