pass_flutter 1.2.0

Flutter Android iOS

A Flutter library for getting and reading Apple Wallet passes.

Apple Wallet logo

Flutter GitHub Actions Pub Package

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 passFile = await Pass().saveFromUrl(url: 'https://link_to_pass/pass.pkpass');

Getting list of all saved passes #

import 'package:pass_flutter/pass_flutter.dart';

List<PassFile> passes = await Pass().getAllSaved();

Fetch preview from url and save it #

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();

Delete pass file from internal memory #

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();

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.

Changelog #

Refer to the Changelog to get all release notes.

2
likes
90
pub points
73%
popularity

A Flutter library for getting and reading Apple Wallet passes.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

alexey.lepskii@gmail.com

License

MIT (LICENSE)

Dependencies

archive, dio, equatable, flutter, json_annotation, path, path_provider, uuid

More

Packages that depend on pass_flutter