flutter_sanity_plus

Last updated:

0 purchases

flutter_sanity_plus Image
flutter_sanity_plus Images
Add to Cart

Description:

flutter sanity plus

Dart Sanity.io #
This Dart package is a small abstraction on top of the Sanity.io API.
Installation #
dart pub add flutter_sanity_plus
copied to clipboard
Example #
// main.dart
import 'package:flutter_sanity_plus/flutter_sanity_plus.dart';

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

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

print(response);
}
copied to clipboard
Credits to: https://gist.github.com/ameistad/2c6eec79a62c7f4d08d051ef4ef14ba0

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.