linkfive_purchases_provider 2.1.0
linkfive_purchases_provider: ^2.1.0 copied to clipboard
linkfive_purchases wrapped in an easy to use Provider. Register the provider and use linkfive everywhere.
example/example.md
Register the Provider with our API key and you're all set to use it
MultiProvider(
providers: [
// ...
ChangeNotifierProvider(
create: (context) => LinkFiveProvider("API_KEY"),
lazy: false,
),
]
)
copied to clipboard
Whenever you want to offer your product, call fetchProducts()
to load the latest products.