flusmic 3.0.0-nullsafety.2 copy "flusmic: ^3.0.0-nullsafety.2" to clipboard
flusmic: ^3.0.0-nullsafety.2 copied to clipboard

outdated

A functional and kind of elegant Prismic.io integration for Dart and Flutter.

example/main.dart

import 'package:flusmic/flusmic.dart';

void main() async {
  ///Create a new Flusmic instance
  final flusmic =
      Flusmic(prismicEndpoint: 'https://flusmic.cdn.prismic.io/api/v2');

  ///Use one of our basic methods
  final rootDocument = await flusmic.getRootDocument();
  print("Total of results: ${rootDocument.results.length}");

  ///For more specific search, you can query by predicates
  final response =
      await flusmic.query([Predicate.at(DefaultPredicatePath.type(), 'test')]);
  print("Total of results: ${response.results.length}");
}
11
likes
0
points
318
downloads

Publisher

verified publisherpixela.tech

Weekly Downloads

A functional and kind of elegant Prismic.io integration for Dart and Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, freezed_annotation, json_annotation

More

Packages that depend on flusmic