supercharge_flutter 0.1.0 supercharge_flutter: ^0.1.0 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.
import 'package:flutter/material.dart';
import 'package:supercharge_flutter/supercharge.dart';
void main() => runApp(const MyApp());
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
late SuperchargeConfig superchargeConfig;
@override
void initState() {
super.initState();
superchargeConfig = SuperchargeConfig(
anonKey: 'YOUR_MAP3_ANON_KEY',
userId: 'YOUR_END_USER_ID',
getDepositAddress: (coin, network) async {
return 'ADDRESS'; // e.g. 0xab5801a7d398351b8be11c439e05c5b3259aec9b
},
// optional parameters with default values
theme: 'light',
locale: 'en',
// for other optional parameters see documentation: https://map3.xyz/docs/supercharge
);
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
toolbarHeight: 0,
),
body: SuperchargeView(
superchargeConfig: superchargeConfig,
),
),
);
}
}