updraft_sdk_flutter 0.0.1-dev1 copy "updraft_sdk_flutter: ^0.0.1-dev1" to clipboard
updraft_sdk_flutter: ^0.0.1-dev1 copied to clipboard

Updraft Flutter SDK project.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:updraft_sdk_flutter/updraft_sdk.dart';
import 'package:updraft_sdk_flutter/updraft_settings.dart';

void main() async {
  await UpdraftSdk.init(
    UpdraftSettings("b741c6965c5b45588f49873ee033c139", "d8badffdbea241188e5c3cb9af8f3674"),
  );
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: const Center(
          child: Text('UpdraftSdk'),
        ),
      ),
    );
  }
}