flutter_sanity 1.1.0 flutter_sanity: ^1.1.0 copied to clipboard
Dart libary to query the Sanity.io API. Supports running queries and downloading files.
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);
}