ezetap_sdk 0.0.1 copy "ezetap_sdk: ^0.0.1" to clipboard
ezetap_sdk: ^0.0.1 copied to clipboard

outdated

Integrating the SDK will allow you to access Ezetap services in your application

example/lib/main.dart

import 'package:eze_sdk_flutter/eze_sdk_flutter.dart';
import 'package:flutter/material.dart';
import 'dart:async';

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> {
  String _result = 'Unknown';

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

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    String result =
          await EzetapSdk.initialize("{}");


    // If the widget was removed from the tree while the asynchronous platform
    // message was in flight, we want to discard the reply rather than calling
    // setState to update our non-existent appearance.
    if (!mounted) return;

    setState(() {
      _result = result;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text(_result),
        ),
      ),
    );
  }
}
4
likes
0
points
72
downloads

Publisher

unverified uploader

Weekly Downloads

Integrating the SDK will allow you to access Ezetap services in your application

License

unknown (license)

Dependencies

flutter

More

Packages that depend on ezetap_sdk

Packages that implement ezetap_sdk