Add all keyboard layouts and their variants

pull/2/head
Amy 3 years ago
parent c5df6a295d
commit 4177e26a8c
No known key found for this signature in database
GPG Key ID: C642EA4B2F4096BE

File diff suppressed because it is too large Load Diff

@ -0,0 +1,11 @@
class Keymap {
String layout = "";
List<String> variant = [];
String backLayout = "";
Keymap({
this.layout = "",
this.variant = const [""],
this.backLayout = "",
});
}

@ -0,0 +1,23 @@
import 'package:flutter/material.dart';
import 'package:jade_gui/Keymaps/keymaps.dart';
Widget keyboard(next) {
return Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
const Text(
'Please select a keyboard layout',
style: TextStyle(
fontSize: 50,
fontWeight: FontWeight.bold,
color: Color.fromARGB(255, 169, 0, 255)),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [],
),
],
),
);
}

@ -11,6 +11,11 @@ Widget locationTemplate(location, nextSlide) {
nextSlide(); nextSlide();
choosenLocPack = location; choosenLocPack = location;
}, },
style: TextButton.styleFrom(
primary: Colors.white,
backgroundColor: const Color.fromARGB(100, 169, 0, 255),
padding: const EdgeInsets.all(10),
),
child: Column( child: Column(
children: [ children: [
Image( Image(

@ -1,7 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:jade_gui/functions/location/location.dart'; import 'package:jade_gui/functions/location/location.dart';
import 'functions/welcome.dart'; import 'package:jade_gui/functions/welcome.dart';
import 'functions/locale.dart'; import 'package:jade_gui/functions/locale.dart';
import 'package:jade_gui/functions/keyboard.dart';
void main() => runApp( void main() => runApp(
const MaterialApp( const MaterialApp(
@ -257,14 +258,11 @@ class _JadeguiState extends State<Jadegui> {
print( print(
"${getSelectedLocPack().region}/${getSelectedLocPack().location}"); "${getSelectedLocPack().region}/${getSelectedLocPack().location}");
print(getSelectedLocPack().locale); print(getSelectedLocPack().locale);
widget = const Text( widget = keyboard(() {
'Showing Keymap screen', setState(() {
style: TextStyle( _selectedIndex = _selectedIndex + 1;
fontSize: 18, });
fontWeight: FontWeight.bold, });
color: Color.fromARGB(255, 169, 0, 255),
),
);
break; break;
case 3: case 3:
widget = const Text( widget = const Text(

Loading…
Cancel
Save