pass-flutter apple wallet passes
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();
Comments are closed.