nevis_mobile_authentication_sdk_ios 3.5.1 copy "nevis_mobile_authentication_sdk_ios: ^3.5.1" to clipboard
nevis_mobile_authentication_sdk_ios: ^3.5.1 copied to clipboard

iOS 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 iOS 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'),
              )
            ],
          ),
        ));
  }
}
3
likes
0
pub points
6%
popularity

Publisher

verified publishernevis.net

iOS implementation of the nevis_mobile_authentication_sdk plugin

Homepage

License

unknown (license)

Dependencies

flutter, nevis_mobile_authentication_sdk_platform_interface

More

Packages that depend on nevis_mobile_authentication_sdk_ios