flutter_lyra 0.4.3 copy "flutter_lyra: ^0.4.3" to clipboard
flutter_lyra: ^0.4.3 copied to clipboard

This package allows you to use the methods from the lyra android and ios native sdks in Flutter

example/example.md


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

class MyExampleApp extends StatelessWidget {
  const MyExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return FutureBuilder<ReachFive>(
      future: LyraManager().initialize(
        publicKey: "publicKey",
        options: LyraInitializeOptions(
          apiServerName: "apiServerName",
          nfcEnabled: true,
          cardScanningEnabled: false,
        ),
      ),
      builder: (context, snapshot) {
        final lyra = snapshot.data;
        if (lyra != null) {
          // You can use your lyra method here
          // Here is an example with getFormTokenVersion
          // Check the others methods in the doc or in the example repo
          return Column(
            children: [
              ElevatedButton(
                onPressed: () async => lyra.getFormTokenVersion(),
                child: const Text('Get Form Token Version'),
              )
            ],
          );
        }

        if (snapshot.hasError) {
          return const Text('handle your initialization error here');
        }

        return const Text('Loading');
      },
    );
  }
}
4
likes
160
points
420
downloads

Publisher

verified publisherbam.tech

Weekly Downloads

This package allows you to use the methods from the lyra android and ios native sdks in Flutter

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

equatable, flutter, flutter_lyra_android, flutter_lyra_ios, flutter_lyra_platform_interface

More

Packages that depend on flutter_lyra