Skip to Content
DocumentationInstallation

Installation

Add Fasq to your Flutter project. You can use the core package alone or add one of the optimized adapters for your preferred state management solution.

Core Package

The core package provides the QueryBuilder, MutationBuilder, and all underlying caching functionality.

flutter pub add fasq

State Management Adapters

If you are already using a state management library, we highly recommend using the corresponding adapter for a more integrated and idiomatic experience.

flutter pub add fasq_riverpod

Bloc Adapter

flutter pub add fasq_bloc

Hooks Adapter

flutter pub add fasq_hooks

Ecosystem & Security

Security Package

For enterprise-grade encryption and secure SQL persistence:

flutter pub add fasq_security

Serializer Generator

To automate type-safe query serialization and eliminate boilerplate:

flutter pub add -d fasq_serializer_generator build_runner

Getting Started

  1. Install the dependencies using the commands above.
  2. Import the packages in your Dart files:
  3. Import the packages you need:
// Core package import 'package:fasq/fasq.dart'; // Adapters (if using) // import 'package:fasq_hooks/fasq_hooks.dart'; // import 'package:fasq_bloc/fasq_bloc.dart'; // import 'package:fasq_riverpod/fasq_riverpod.dart';

Compatibility

Fasq requires:

  • Flutter: 3.10.0 or higher
  • Dart: 3.0.0 or higher
Last updated on