GitHub repositoryalexey-nobody/pass-flutter

pass-flutter

Simple Flutter package for work with Apple Wallet passes.

pass-flutter project cover
Stars
23
Forks
20
Last push (UTC)
Aug 9, 2023
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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.

Alexey Lepskii GitHub avatar
GitHub author

Alexey Lepskii ↗

LighTech LLC
LanguagesDart

Categories

Dependencies used

Dependency list 12 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗