vendure 0.3.1 copy "vendure: ^0.3.1" to clipboard
vendure: ^0.3.1 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(
      endpoint: 'http://localhost:3000/shop-api',
      token:
          '3e09931820c8a9542be087da474bd13f7ded7596a23b15b49fa946a4334d9e32');

  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, json_annotation

More

Packages that depend on vendure