File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 11import 'package:flutter/material.dart' ;
2- import 'package:woosignal/woosignal_shopify.dart' ;
3- import 'package:woosignal/models/response/product.dart' ;
2+ import 'package:woosignal_shopify/woosignal_shopify.dart' ;
43
54void woosignalWoocommerceExample () => runApp (MyApp ());
65
@@ -33,10 +32,10 @@ class _MyHomePageState extends State<MyHomePage> {
3332 // CREATING AN INSTANCE FOR WOOSIGNAL
3433 await WooSignal .instance.init (appKey: "your app key" );
3534
36- List < Product > products = await WooSignal .instance.getProducts ();
37- if (products.isNotEmpty) {
38- _productName = products[0 ].name ?? "" ;
39- }
35+ // ProductResponse? product = await WooSignal.instance.getProducts();
36+ // if (products.isNotEmpty) {
37+ // _productName = products[0].name ?? "";
38+ // }
4039 setState (() {});
4140 }
4241
You can’t perform that action at this time.
0 commit comments