2022-10-04 13:12:54 +03:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2022 Yubico.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*
|
|
|
|
* http://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.
|
|
|
|
*/
|
|
|
|
|
2022-09-12 14:01:46 +03:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
2023-03-03 18:09:40 +03:00
|
|
|
import 'models.dart';
|
|
|
|
|
2022-09-12 14:01:46 +03:00
|
|
|
const _prefix = 'android.keys';
|
|
|
|
|
2023-03-03 18:09:40 +03:00
|
|
|
const okButton = Key('$_prefix.ok');
|
|
|
|
const manualEntryButton = Key('$_prefix.manual_entry');
|
2023-10-10 14:49:01 +03:00
|
|
|
const readFromImage = Key('$_prefix.read_image_file');
|
2022-09-12 14:01:46 +03:00
|
|
|
|
|
|
|
const nfcBypassTouchSetting = Key('$_prefix.nfc_bypass_touch');
|
2023-01-10 13:44:43 +03:00
|
|
|
const nfcSilenceSoundsSettings = Key('$_prefix.nfc_silence_sounds');
|
2022-11-25 18:22:04 +03:00
|
|
|
const usbOpenApp = Key('$_prefix.usb_open_app');
|
2022-09-23 11:17:28 +03:00
|
|
|
|
2023-03-03 18:09:40 +03:00
|
|
|
const nfcTapSetting = Key('$_prefix.nfc_tap');
|
|
|
|
Key nfcTapOption(NfcTapAction action) =>
|
|
|
|
Key('$_prefix.tap_action.${action.name}');
|
2022-09-23 11:17:28 +03:00
|
|
|
|
2023-03-03 18:09:40 +03:00
|
|
|
const nfcKeyboardLayoutSetting = Key('$_prefix.nfc_keyboard_layout');
|
2022-09-12 14:01:46 +03:00
|
|
|
Key keyboardLayoutOption(String name) => Key('$_prefix.keyboard_layout.$name');
|