|
|
@ -1,12 +1,15 @@
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import '../Locales/locales.dart';
|
|
|
|
import '../Locales/locales.dart';
|
|
|
|
|
|
|
|
import '../classes/location.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Location choosenLocPack = Location();
|
|
|
|
Widget locationTemplate(location, nextSlide) {
|
|
|
|
Widget locationTemplate(location, nextSlide) {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
padding: const EdgeInsets.all(8),
|
|
|
|
padding: const EdgeInsets.all(8),
|
|
|
|
child: ElevatedButton(
|
|
|
|
child: ElevatedButton(
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
nextSlide();
|
|
|
|
nextSlide();
|
|
|
|
|
|
|
|
choosenLocPack = location;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
@ -205,3 +208,7 @@ List<Widget> options(region, locations, nextSlide) {
|
|
|
|
// Finally returning a Widget
|
|
|
|
// Finally returning a Widget
|
|
|
|
return widget;
|
|
|
|
return widget;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Location getSelectedLocPack() {
|
|
|
|
|
|
|
|
return choosenLocPack;
|
|
|
|
|
|
|
|
}
|
|
|
|