** This is an unofficial SDK for flutter
This package make it easy to use the Mono connect widget in a flutter project.
- 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: () {
print('Widget closed')
},
onSuccess: (String code) {
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: () {
print('Widget closed')
},
onSuccess: (String code) {
print("Linked successfully: $code");
},
error: Text('Error'),
)
...
Lots of PR's would be needed to improve this plugin. So lots of suggestions and PRs are welcome.