vendure 0.8.0 copy "vendure: ^0.8.0" to clipboard
vendure: ^0.8.0 copied to clipboard

Flutter SDK for Vendure Open Source Headless Commerce Framework.

example/vendure_example.dart

import 'package:vendure/vendure.dart';

void main() async {
  final Vendure vendure = await Vendure.initializeWithFirebaseAuth(
    endpoint: 'http://localhost:3000/shop-api',
    uid: '8o6CuL3vvceCwjnSxtCTp08vEMr2',
    jwt: 'your-jwt-token',
    sessionDuration: const Duration(hours: 1), // Example session duration
  );

  try {
    await vendure.order.addItemToOrder(productVariantId: 86, quantity: 1);
    // Add assertions based on your expected result
  } catch (e) {
    print('Error adding item to cart: $e');
  }
}
3
likes
0
pub points
57%
popularity

Publisher

verified publisherzikzak.wtf

Flutter SDK for Vendure Open Source Headless Commerce Framework.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, freezed_annotation, graphql, http, json_annotation

More

Packages that depend on vendure