mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-23 09:56:23 +03:00
40 lines
865 B
Dart
Executable File
40 lines
865 B
Dart
Executable File
import 'package:flutter/material.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import '../../management/models.dart';
|
|
|
|
part 'models.freezed.dart';
|
|
part 'models.g.dart';
|
|
|
|
enum SubPage { authenticator, yubikey }
|
|
|
|
@freezed
|
|
class DeviceNode with _$DeviceNode {
|
|
factory DeviceNode(
|
|
List<String> path,
|
|
int pid,
|
|
Transport transport,
|
|
String name,
|
|
DeviceInfo info,
|
|
) = _DeviceNode;
|
|
|
|
factory DeviceNode.fromJson(Map<String, dynamic> json) =>
|
|
_$DeviceNodeFromJson(json);
|
|
}
|
|
|
|
@freezed
|
|
class MenuAction with _$MenuAction {
|
|
factory MenuAction(
|
|
{required String text,
|
|
required Icon icon,
|
|
void Function()? action}) = _MenuAction;
|
|
}
|
|
|
|
@freezed
|
|
class WindowState with _$WindowState {
|
|
factory WindowState({
|
|
required bool focused,
|
|
required bool visible,
|
|
required bool active,
|
|
}) = _WindowState;
|
|
}
|