onepref 0.0.24
onepref: ^0.0.24 copied to clipboard
This package is a well-structured wrapper around Flutter’s in_app_purchase API that centralizes in-app purchase (IAP) logic for both Android (Google Play) and iOS (App Store).
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add oneprefThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
onepref: ^0.0.24Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:onepref/onepref.dart';