nevis_mobile_authentication_sdk_android 3.6.0 copy "nevis_mobile_authentication_sdk_android: ^3.6.0" to clipboard
nevis_mobile_authentication_sdk_android: ^3.6.0 copied to clipboard

PlatformAndroid

Android implementation of the nevis_mobile_authentication_sdk plugin

example/lib/main.dart

// Copyright © 2022 Nevis Security AG. All rights reserved.

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData.light(),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final _repoLink =
      'https://github.com/nevissecurity/nevis-mobile-authentication-sdk-example-app-flutter';

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: const Text('Nevis Flutter Android Demo')),
        body: Padding(
          padding: const EdgeInsets.only(
              top: 16.0, right: 8.0, left: 8.0, bottom: 8.0),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              const Text(
                  'Please find the full example app in the following GitHub repository:'),
              Text(_repoLink),
              TextButton(
                onPressed: () {
                  Clipboard.setData(ClipboardData(text: _repoLink)).then((_) {
                    ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
                        content: Text('Copied to your clipboard!')));
                  });
                },
                child: const Text('Copy link'),
              )
            ],
          ),
        ));
  }
}
2
likes
130
pub points
5%
popularity

Publisher

verified publishernevis.net

Android implementation of the nevis_mobile_authentication_sdk plugin

Homepage

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter, nevis_mobile_authentication_sdk_platform_interface

More

Packages that depend on nevis_mobile_authentication_sdk_android