flutter_canvas_woocommerce 0.0.1 flutter_canvas_woocommerce: ^0.0.1 copied to clipboard
A new Flutter package that helps Communicate with WooCommerce APIs independently.
Flutter Canvas WooCommerce API #
A Flutter package that helps in communicating with WooCommerce APIs, developed by fluttercanvas.io.
Getting Started #
To use this package, follow these steps:
-
Obtain WooCommerce Consumer Secret and Key with Domain URL:
-
In your
main.dart
file, initialize aFlutterCanvasWooCommerce
instance using theinit
function. -
Pass the key, secret, and URL in the
init
function as follows:FlutterCanvasWoo.instance.init( url: 'your_domain_url', consumerKey: 'your_consumerKey', consumerSecret: 'your_consumerSecret' );
-
-
Using the API in Your Project:
-
For example, to fetch products, you can implement it as follows:
FlutterCanvasWoo.instance.fetchProducts(pageNumber: 1, perPage: 15);
Make sure to replace
'your_domain_url'
,'your_consumerKey'
, and'your_consumerSecret'
with your actual WooCommerce domain URL, consumer key, and consumer secret respectively. -