vendure 7.6.1
vendure: ^7.6.1 copied to clipboard
Typed Dart and Flutter SDK for Vendure GraphQL APIs - channel-aware catalog, cart, checkout, payment, and admin domain clients.
vendure #
The Zuraffa reimplementation of the Vendure Flutter SDK — a GraphQL commerce seam (auth, orders, catalog, customers, system, custom operations) built on the zfa clean-architecture stack.
Query the catalog #
import 'package:vendure/vendure.dart';
Future<void> main() async {
final client = createVendureClient(
endpoint: 'https://shop.example.com/shop-api',
);
final products = await client.catalog.getProducts(
options: ProductListOptions(slug: 't-shirt'),
);
for (final p in products.items) {
print(p.name);
}
}
Authenticate a customer #
import 'package:vendure/vendure.dart';
final auth = await client.auth.authenticate(email: 'a@b.com', password: 'secret');