A Flutter library for work with Apple Wallet passes.
import 'package:pass_flutter/pass_flutter.dart';
PassFile passFile = await Pass().saveFromUrl(url: 'https://link_to_pass/pass.pkpass');
import 'package:pass_flutter/pass_flutter.dart';
List<PassFile> passes = await Pass().getAllSaved();
import 'package:pass_flutter/pass_flutter.dart';
PassFile passFile = await Pass().fetchPreviewFromUrl(url: 'https://link_to_pass/pass.pkpass');
passFile.save();
or delete it
import 'package:pass_flutter/pass_flutter.dart';
PassFile passFile = await Pass().fetchPreviewFromUrl(url: 'https://link_to_pass/pass.pkpass');
passFile.delete();
import 'package:pass_flutter/pass_flutter.dart';
Pass pass = Pass();
PassFile passFile = await pass.saveFromUrl(url: 'https://link_to_pass/pass.pkpass');
await pass.delete(passFile);
OR
passFile.delete();
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.
Refer to the Changelog to get all release notes.