mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-29 23:20:03 +03:00
11 lines
438 B
Dart
11 lines
438 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:yubico_authenticator/android/init.dart' as android;
|
||
|
import 'package:yubico_authenticator/core/state.dart';
|
||
|
import 'package:yubico_authenticator/desktop/init.dart' as desktop;
|
||
|
|
||
|
Future<Widget> getAuthenticatorApp() async => isDesktop
|
||
|
? await desktop.initialize([])
|
||
|
: isAndroid
|
||
|
? await android.initialize()
|
||
|
: throw UnimplementedError('Platform not supported');
|