mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-13 01:10:31 -07:00
feat: Implement custom keyboard for Android TV (#523)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
721fc28060
commit
75c2f958b4
22 changed files with 927 additions and 157 deletions
92
lib/widgets/keyboard/keyboard_localization.dart
Normal file
92
lib/widgets/keyboard/keyboard_localization.dart
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
class KeyboardLayouts {
|
||||
static const Map<String, Map<KeyboardLayer, List<List<String>>>> layouts = {
|
||||
'en': {
|
||||
KeyboardLayer.alpha: [
|
||||
['A', 'B', 'C', 'D', 'E', 'F', 'G', '⌫'],
|
||||
['H', 'I', 'J', 'K', 'L', 'M', 'N', '123'],
|
||||
['O', 'P', 'Q', 'R', 'S', 'T', 'U'],
|
||||
['V', 'W', 'X', 'Y', 'Z'],
|
||||
],
|
||||
KeyboardLayer.numericExtra: [
|
||||
['1', '2', '3', '&', '#', '(', ')', '⌫'],
|
||||
['4', '5', '6', '@', '!', '?', ':', 'ABC'],
|
||||
['7', '8', '9', '.', '-', '_', '"', ':'],
|
||||
['0', '/', '\$', '%', '+', '[', ']'],
|
||||
],
|
||||
},
|
||||
'es': {
|
||||
KeyboardLayer.alpha: [
|
||||
['A', 'B', 'C', 'D', 'E', 'F', 'G', '⌫'],
|
||||
['H', 'I', 'J', 'K', 'L', 'M', 'N', '123'],
|
||||
['O', 'P', 'Q', 'R', 'S', 'T', 'U'],
|
||||
['V', 'W', 'X', 'Y', 'Z', 'Ñ'],
|
||||
],
|
||||
KeyboardLayer.numericExtra: [
|
||||
['1', '2', '3', '&', '#', '(', ')', '⌫'],
|
||||
['4', '5', '6', '@', '!', '?', ';', 'ABC'],
|
||||
['7', '8', '9', '.', '-', '_', '"'],
|
||||
['0', '/', '\$', '%', '+', '[', ']'],
|
||||
],
|
||||
},
|
||||
'de': {
|
||||
KeyboardLayer.alpha: [
|
||||
['A', 'B', 'C', 'D', 'E', 'F', 'G', '⌫'],
|
||||
['H', 'I', 'J', 'K', 'L', 'M', 'N', '123'],
|
||||
['O', 'P', 'Q', 'R', 'S', 'T', 'U'],
|
||||
['V', 'W', 'X', 'Y', 'Z', 'Ä', 'Ö', 'Ü'],
|
||||
],
|
||||
KeyboardLayer.numericExtra: [
|
||||
['1', '2', '3', '&', '#', '(', ')', '⌫'],
|
||||
['4', '5', '6', '@', '!', '?', ';', 'ABC'],
|
||||
['7', '8', '9', '.', '-', '_', '"'],
|
||||
['0', '/', '\$', '%', '+', '[', ']'],
|
||||
],
|
||||
},
|
||||
'fr': {
|
||||
KeyboardLayer.alpha: [
|
||||
['A', 'B', 'C', 'D', 'E', 'F', 'G', '⌫'],
|
||||
['H', 'I', 'J', 'K', 'L', 'M', 'N', '123'],
|
||||
['O', 'P', 'Q', 'R', 'S', 'T', 'U'],
|
||||
['V', 'W', 'X', 'Y', 'Z', 'É', 'È', 'À'],
|
||||
],
|
||||
KeyboardLayer.numericExtra: [
|
||||
['1', '2', '3', '&', '#', '(', ')', '⌫'],
|
||||
['4', '5', '6', '@', '!', '?', ';', 'ABC'],
|
||||
['7', '8', '9', '.', '-', '_', '"'],
|
||||
['0', '/', '\$', '%', '+', '[', ']'],
|
||||
],
|
||||
},
|
||||
'ja': {
|
||||
KeyboardLayer.alpha: [
|
||||
['あ', 'い', 'う', 'え', 'お', 'か', 'き', '⌫'],
|
||||
['さ', 'し', 'す', 'せ', 'そ', 'た', 'ち', '123'],
|
||||
['な', 'に', 'ぬ', 'ね', 'の', 'は', 'ひ'],
|
||||
['ふ', 'へ', 'ほ', 'ま', 'み', 'む', 'も', 'や', 'ゆ', 'よ'],
|
||||
],
|
||||
KeyboardLayer.numericExtra: [
|
||||
['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '⌫'],
|
||||
['!', '@', '#', '\$', '%', '^', '&', '*', '(', ')', 'ABC'],
|
||||
],
|
||||
},
|
||||
'zh': {
|
||||
KeyboardLayer.alpha: [
|
||||
['啊', '波', '从', '的', '饿', '发', '个', '⌫'],
|
||||
['喝', '衣', '机', '卡', '拉', '马', '呢', '123'],
|
||||
['哦', '啪', '期', '然', '色', '他', '乌'],
|
||||
['为', '西', '行', '呀', '月', '子'],
|
||||
],
|
||||
KeyboardLayer.numericExtra: [
|
||||
['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '⌫'],
|
||||
['!', '@', '#', '\$', '%', '^', '&', '*', '(', ')', 'ABC'],
|
||||
],
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
enum KeyboardLayer {
|
||||
alpha,
|
||||
numericExtra,
|
||||
numeric,
|
||||
email,
|
||||
domain,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue