thepeer_flutter 2.0.0-beta.3 copy "thepeer_flutter: ^2.0.0-beta.3" to clipboard
thepeer_flutter: ^2.0.0-beta.3 copied to clipboard

outdated

Official plugin for using Thepeer SDK with flutter https://thepeer.co

Flutter Thepeer #

This package makes it easy to use the Thepeer in a flutter project.

📸 Screen Shots #

thepeer-one thepeer-two thepeer-three

🚀 How to Use plugin #

  • Launch ThepeerView in a bottom_sheet
import 'package:thepeer_flutter/thepeer_flutter.dart';
    
  void launch() async {
    await ThepeerView(
            data: ThePeerData(
               amount: 10000,
               receiptUrl: '$receiptUrl',
               publicKey: '$publicKey',
               userReference: '$userReference',
            ),
            showLogs: true,
            onClosed: () {
               print('onClosed');
            },
            onSuccess: () {
               final snackBar =
              SnackBar(content: Text('Yay! Your payment was successful'));
              ScaffoldMessenger.of(context).showSnackBar(snackBar);
            },
      ).show(context);
  }

✨ Contribution #

Lots of PR's would be needed to improve this plugin. So lots of suggestions and PRs are welcome.

5
likes
0
points
14
downloads

Publisher

verified publisherthepeer.co

Weekly Downloads

Official plugin for using Thepeer SDK with flutter https://thepeer.co

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dartz, dio, equatable, flutter, flutter_hooks, flutter_spinkit, flutter_svg, gap, hooks_riverpod, intl, logger, modal_bottom_sheet, pedantic

More

Packages that depend on thepeer_flutter