thepeer_flutter 1.0.2 copy "thepeer_flutter: ^1.0.2" to clipboard
thepeer_flutter: ^1.0.2 copied to clipboard

outdated

An unofficial plugin for using Peerstack SDK https://thepeer.co/

Flutter Peerstack #

This package makes it easy to use the Peerstack 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,
               firstName: '$firstName',
               receiptUrl: '$receiptUrl',
               publicKey: '$publicKey',
               userReference: '$userReference',
            ),
            showLogs: true,
            onClosed: () {
               Navigator.pop(context);
            },
            onSuccess: () {
               Navigator.pop(context);
            },
      ).show(context);
  }
  • Use ThepeerView widget
import 'package:thepeer_flutter/thepeer_flutter.dart';
    
     ...

     ThepeerView(
         data: ThePeerData(
               amount: 10000,
               firstName: '$firstName',
               receiptUrl: '$receiptUrl',
               publicKey: '$publicKey',
               userReference: '$userReference',
         ),
         onClosed: () {
            Navigator.pop(context);
            print('Widget closed')
         },
         onSuccess: () {
            Navigator.pop(context);
         },
        error: Text('Error'),
      )

      ...
  

✨ Contribution #

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

5
likes
0
pub points
53%
popularity

Publisher

verified publisherthepeer.co

An unofficial plugin for using Peerstack SDK https://thepeer.co/

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, modal_bottom_sheet, webview_flutter

More

Packages that depend on thepeer_flutter