Apple PassKit

pub package likes popularity pub points

Twitter Follow GitHub followers

This is a Flutter binding for Apple's PassKit.

This library allows you to add and and read PkPass files.

How to use it

final passKit = ApplePassKit();
// first check whether PassKit is available
bool isAvailable = await passKit.isPassLibraryAvailable();
// then check whether you can actually add passes
bool canAddPasses = await passKit.canAddPasses();

// when both of them are true, you can add a pass.
if(isAvailable && canAddPasses) {
    await passKit.addPass(pass);

To view all methods, take a look at the API docs.

View your app's passes

Setup your Xcode project as described in the documentation.

After that, use await ApplePassKit().passes() to load your installed passes.