reclaim_flutter_sdk 0.0.1
reclaim_flutter_sdk: ^0.0.1 copied to clipboard
The Reclaim Protocol's in App Flutter SDK.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:reclaim_flutter_sdk/reclaim_flutter_sdk.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
const MyApp({
super.key,
});
// ...
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: ReclaimVerification(
appId: 'YOUR_APP_ID',
providerId: 'aaa47198-2523-40da-b9a9-bfa290730d52',
secret: '',/**/
context: '',
parameters: { /* ... */ },
onSuccess: (proof) { /* Handle success */ },
onError: (error) { /* Handle error */ },
child: const Text('Start Claim'),
),
),
),
);
}
// ...
}