supercharge_flutter 0.1.4 copy "supercharge_flutter: ^0.1.4" to clipboard
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.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:supercharge_flutter/supercharge.dart';

void main() => runApp(const MyApp());

class MyApp extends StatefulWidget {
  const MyApp({
    Key? key,
  }) : super(key: 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',
      options: SuperchargeConfigOptions(
        callbacks: SuperchargeConfigOptionsCallbacks(
          onAddressRequested: (coin, network) async {
            return {
              'address': 'ADDRESS',
            }; // e.g. 0xab5801a7d398351b8be11c439e05c5b3259aec9b
          },
        ),
        // optional parameters with default values
        style: SuperchargeConfigOptionsStyle(
          locale: 'en',
          theme: 'light',
        ),
        // 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,
        ),
      ),
    );
  }
}
2
likes
130
points
97
downloads

Publisher

unverified uploader

Weekly Downloads

The Map3 Supercharge Flutter SDK connects Android and iOS crypto apps to Wallets, Exchanges & Bridges, enabling cross-chain deposits and increasing volumes.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_inappwebview, plugin_platform_interface, url_launcher

More

Packages that depend on supercharge_flutter