onepref 0.0.22
onepref: ^0.0.22 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 Dart:
$ dart pub add oneprefWith Flutter:
$ flutter pub add oneprefThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
onepref: ^0.0.22Alternatively, your editor might support dart pub get or 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';