diff --git a/assets/troll.png b/assets/troll.png deleted file mode 100644 index c39de0f..0000000 Binary files a/assets/troll.png and /dev/null differ diff --git a/lib/functions/location.dart b/lib/functions/location.dart index b1a689b..f42dbfa 100644 --- a/lib/functions/location.dart +++ b/lib/functions/location.dart @@ -1,12 +1,15 @@ import 'package:flutter/material.dart'; import '../Locales/locales.dart'; +import '../classes/location.dart'; +Location choosenLocPack = Location(); Widget locationTemplate(location, nextSlide) { return Container( padding: const EdgeInsets.all(8), child: ElevatedButton( onPressed: () { nextSlide(); + choosenLocPack = location; }, child: Column( children: [ @@ -205,3 +208,7 @@ List options(region, locations, nextSlide) { // Finally returning a Widget return widget; } + +Location getSelectedLocPack() { + return choosenLocPack; +} diff --git a/lib/main.dart b/lib/main.dart index 4e7abbf..bb3d0ff 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,7 +1,9 @@ import 'package:flutter/material.dart'; +import 'package:jade_gui/functions/Region.dart'; +import 'package:jade_gui/functions/location.dart'; import 'functions/welcome.dart'; import 'functions/locale.dart'; -//import 'classes/location.dart'; +import 'classes/location.dart'; //import 'Locales/locales.dart'; void main() => runApp( @@ -255,6 +257,9 @@ class _JadeguiState extends State { }, nextpage); break; case 2: + print( + "${getSelectedLocPack().region}/${getSelectedLocPack().location}"); + print(getSelectedLocPack().locale); widget = const Text( 'Showing Keymap screen', style: TextStyle(