You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jade_gui/lib/functions/Region.dart

92 lines
2.6 KiB
Dart

import 'package:flutter/material.dart';
String selectedRegion = "";
Widget region(next) {
return SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
const SizedBox(height: 20),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
Text(
'Please choose your Locale',
style: TextStyle(
fontSize: 50,
fontWeight: FontWeight.bold,
color: Color.fromARGB(255, 169, 0, 255)),
),
],
),
const SizedBox(height: 10),
GridView.count(
primary: false,
padding: const EdgeInsets.all(20),
shrinkWrap: true,
crossAxisSpacing: 10,
mainAxisSpacing: 10,
crossAxisCount: 3,
children: <Widget>[
Container(
padding: const EdgeInsets.all(8),
child: ElevatedButton(
onPressed: () {
next();
selectedRegion = "Europe";
},
child: Text('Europe'),
),
//color: Colors.teal[100],
),
Container(
padding: const EdgeInsets.all(8),
child: ElevatedButton(
onPressed: () {},
child: Text('English'),
),
//color: Colors.teal[100],
),
Container(
padding: const EdgeInsets.all(8),
child: ElevatedButton(
onPressed: () {},
child: Text('English'),
),
//color: Colors.teal[100],
),
Container(
padding: const EdgeInsets.all(8),
child: ElevatedButton(
onPressed: () {},
child: Text('English'),
),
//color: Colors.teal[100],
),
Container(
padding: const EdgeInsets.all(8),
child: ElevatedButton(
onPressed: () {},
child: Text('English'),
),
//color: Colors.teal[100],
),
Container(
padding: const EdgeInsets.all(8),
child: ElevatedButton(
onPressed: () {},
child: Text('English'),
),
//color: Colors.teal[100],
),
],
),
],
),
);
}
String getSelectedRegion() {
return selectedRegion;
}