flutter_mono 2.0.0
flutter_mono: ^2.0.0 copied to clipboard

An unofficial plugin for using Mono Connect SDK https://mono.co

Flutter Mono #

** This is an unofficial SDK for flutter

This package make it easy to use the Mono connect widget in a flutter project.

📸 Screen Shots #

🚀 How to Use plugin #

  • Launch MonoFlutter with launchMono method
import 'package:flutter_mono/flutter_mono.dart';
    
  void launch() async {
      await MonoFlutter.launchMono(
              context,
              key: 'Your Public Key', // from https://app.withmono.com/apps
              onClosed: () {
                 Navigator.pop(context);
                  print('Widget closed')
              },
              onSuccess: (String code) {
                 Navigator.pop(context);
                  print("Linked successfully: $code");
              },
        );
  }
  • Use MonoView widget
import 'package:flutter_mono/flutter_mono.dart';
    
     ...

     MonoView(
        apiKey: 'Your Public Key', // from https://app.withmono.com/apps
         onClosed: () {
            Navigator.pop(context);
            print('Widget closed')
         },
         onSuccess: (String code) {
            Navigator.pop(context);
            print("Linked successfully: $code");
         },
        error: Text('Error'),
      )

      ...
  

✨ Contribution #

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

2
likes
110
pub points
43%
popularity

Publisher

codenka.com

An unofficial plugin for using Mono Connect SDK https://mono.co

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, webview_flutter

More

Packages that depend on flutter_mono