passkit 0.0.2 copy "passkit: ^0.0.2" to clipboard
passkit: ^0.0.2 copied to clipboard

Pure Dart library which can read Apple's PKPass files. Works on servers too.

PassKit #

pub package likes popularity pub points

Twitter Follow GitHub followers

🚧 API is subject to change! 🚧 The API should become a lot more stable once this package fully supports localization.

PassKit allows you to work with Apple's PkPass files. This is a pure Dart library. No Flutter needed.

Want to work with Apple's PassKit APIs? Consider using apple_passkit.

How to read a PassKit file? #

import 'package:passkit/passkit.dart';

void main() {
  final passKitBytes = ... // get bytes for the PassKit from somewhere
  final pkPass = PkPass.fromBytes(passKitBytes);
}

How to get the latest version of a given PkPass? #

import 'package:passkit/passkit.dart';

void main() {
  final passKitBytes = ... // get bytes for the PassKit from somewhere
  final pkPass = PkPass.fromBytes(passKitBytes);

  if(pkPass.isWebServiceAvailable) {
    final pkPassBytes = PassKitWebClient().getLatestVersion(pkPass);
  }
}

Currently unsupported functionality #

Feel free to submit PRs for them

Bugs and parsing issues #

If you hit an issue with parsing, please create an issue and attach the PkPass (if possible)

7
likes
0
pub points
67%
popularity

Publisher

verified publisheruekoetter.dev

Pure Dart library which can read Apple's PKPass files. Works on servers too.

Repository (GitHub)
View/report issues

Topics

#passkit #pkpass

License

unknown (license)

Dependencies

archive, barcode, csslib, http, http_parser, json_annotation

More

Packages that depend on passkit