pass_flutter 1.0.0 pass_flutter: ^1.0.0 copied to clipboard
A Flutter library for work with Apple Wallet passes.
pass-flutter #
A Flutter library for work with Apple Wallet passes.
How use it #
Getting pass from URL to internal memory #
import 'package:pass_flutter/pass_flutter.dart';
PassFile passes = await new Pass().getFromUrl('https://link_to_pass/pass.pkpass');
Getting list of all saved passes #
import 'package:pass_flutter/pass_flutter.dart';
List<PassFile> passFile = await new Pass().getAllSaved();
Delete pass file from internal memory #
import 'package:pass_flutter/pass_flutter.dart';
Pass pass = new Pass();
PassFile passFile = await pass.getFromUrl('https://link_to_pass/pass.pkpass');
await pass.delete(passFile);
Contribute #
Please feel free to fork, improve, make pull requests or fill issues. I'll be glad to fix bugs you encountered or improve the extension.