directus 0.2.2 directus: ^0.2.2 copied to clipboard
The unofficial SDK for Directus, with REST API and auth. Compatible with Flutter.
import 'package:directus/directus.dart';
void main() async {
final sdk = await Directus('http://localhost:8055').init();
try {
final response = await sdk.items('posts').readMany();
print(response.data);
} on DirectusError catch (error) {
print(error.message);
}
}