flutter_sanity 1.1.0 copy "flutter_sanity: ^1.1.0" to clipboard
flutter_sanity: ^1.1.0 copied to clipboard

Dart libary to query the Sanity.io API. Supports running queries and downloading files.

Dart Sanity.io #

This Dart package is a small abstraction on top of the Sanity.io API.

Installation #

dart pub add flutter_sanity

Example #

// main.dart
import 'package:flutter_sanity/flutter_sanity.dart';

void main() async {
  final sanityClient = SanityClient(
    dataset: 'dataSet',
    projectId: 'projectId',
  );

  final response = await sanityClient.fetch('*[_type == "post"]');

  print(response);
}

Credits to: https://gist.github.com/ameistad/2c6eec79a62c7f4d08d051ef4ef14ba0

17
likes
150
pub points
70%
popularity

Publisher

unverified uploader

Dart libary to query the Sanity.io API. Supports running queries and downloading files.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

http

More

Packages that depend on flutter_sanity