supercharge_flutter 0.1.4 supercharge_flutter: ^0.1.4 copied to clipboard
The Map3 Supercharge Flutter SDK connects Android and iOS crypto apps to Wallets, Exchanges & Bridges, enabling cross-chain deposits and increasing volumes.
💸 Supercharge Flutter
The Map3 Supercharge Flutter SDK connects
Android and iOS crypto apps to Wallets, Exchanges & Bridges, enabling
cross-chain deposits and increasing volumes.
Android and iOS crypto apps to Wallets, Exchanges & Bridges, enabling
cross-chain deposits and increasing volumes.
Requirements #
1. Generate an Anon Key #
Visit https://console.map3.xyz to generate YOUR_ANON_KEY
.
2. Enable assets and networks #
Visit https://console.map3.xyz/config and enable assets and networks.
Installation #
flutter pub add supercharge_flutter
Configuration #
superchargeConfig = SuperchargeConfig(
anonKey: 'YOUR_MAP3_ANON_KEY',
userId: 'YOUR_END_USER_ID',
options: SuperchargeConfigOptions(
callbacks: SuperchargeConfigOptionsCallbacks(
onAddressRequested: (coin, network) async {
return {
'address': 'ADDRESS',
}; // e.g. 0xab5801a7d398351b8be11c439e05c5b3259aec9b
},
),
),
);
Initialization #
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
toolbarHeight: 0,
),
body: SuperchargeView(
superchargeConfig: superchargeConfig,
),
),
);
}
Detailed example #
You can check out a detailed example in the example folder