danasdk 0.0.3 copy "danasdk: ^0.0.3" to clipboard
danasdk: ^0.0.3 copied to clipboard

Dana SDK built for Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:danasdk/danasdk.dart';

void main() {
  runApp(const MyApp());
}

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

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

class _MyAppState extends State<MyApp> {
  final _danasdkPlugin = Danasdk();

  String phone = "EMPLOYER_PHONE";
  String companyKey = "YOUR_COMPANY_KEY";
  String orgLogo = "YOUR_ORGANIZATION_LOGO_URL";

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text("Flutter Wrapper for Dana SDK"),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: () {
              _danasdkPlugin.runSdk(phone, companyKey, orgLogo);
            },
            child: const Text("Run SDK"),
          ),
        ),
      ),
    );
  }
}
1
likes
140
points
21
downloads

Publisher

verified publisherdana.money

Weekly Downloads

Dana SDK built for Flutter.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on danasdk