huawei_fido 6.3.0+305 copy "huawei_fido: ^6.3.0+305" to clipboard
huawei_fido: ^6.3.0+305 copied to clipboard

PlatformAndroid

HUAWEI FIDO Kit plugin for Flutter. It provides your app with FIDO2 based on the WebAuthn standart.

example/lib/main.dart

/*
    Copyright 2021-2022. Huawei Technologies Co., Ltd. All rights reserved.

    Licensed under the Apache License, Version 2.0 (the "License")
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        https://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

import 'package:flutter/material.dart';
import 'package:huawei_fido_example/bioauthn/face_manager_example.dart';
import './bioauthn/bio_authn_manager_example.dart';
import './bioauthn/bio_authn_prompt_example.dart';
import './fidoclient/fido_example.dart';
import './widgets/custom_button.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  const Home({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: const Text('HUAWEI FIDO EXAMPLE')),
        body: Column(
          children: <Widget>[
            customButton('BIOAUTHN MANAGER EXAMPLE', () {
              Navigator.of(context).push(
                MaterialPageRoute<dynamic>(
                    builder: (BuildContext context) =>
                        const BioAuthnManagerExample()),
              );
            }),
            customButton('BIOAUTHN PROMPT EXAMPLE', () {
              Navigator.of(context).push(
                MaterialPageRoute<dynamic>(
                    builder: (BuildContext context) =>
                        const BioAuthnPromptExample()),
              );
            }),
            customButton('FACE MANAGER EXAMPLE', () {
              Navigator.of(context).push(
                MaterialPageRoute<dynamic>(
                    builder: (BuildContext context) =>
                        const FaceManagerExample()),
              );
            }),
            customButton('FIDO2CLIENT EXAMPLE', () {
              Navigator.of(context).push(
                MaterialPageRoute<dynamic>(
                    builder: (BuildContext context) => const FidoExample()),
              );
            }),
          ],
        ));
  }
}
7
likes
150
points
5
downloads

Publisher

verified publisherdeveloper.huawei.com

Weekly Downloads

HUAWEI FIDO Kit plugin for Flutter. It provides your app with FIDO2 based on the WebAuthn standart.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on huawei_fido