fix warnings

pull/2/head
axtlos 3 years ago
parent d661299f65
commit ad6669ac35
No known key found for this signature in database
GPG Key ID: A468AFD71DD51D4A

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -1,42 +0,0 @@
import 'package:jade_gui/Locales/arctic.dart';
import 'africa.dart';
import 'america.dart';
import 'antarctica.dart';
import 'asia.dart';
import 'atlantic.dart';
import 'australia.dart';
import 'brazil.dart';
import 'canada.dart';
import 'chile.dart';
import 'europe.dart';
import 'indian.dart';
import 'mexico.dart';
import 'pacific.dart';
import 'us.dart';
import 'package:jade_gui/classes/location.dart';
class Local {
List<Location> location = [Location()];
String name = "";
Local(this.location, this.name);
}
List<Local> locations = [
Local(africa, "Africa"),
Local(america, "America"),
Local(antarctica, "Antarctica"),
Local(arctic, "Arctic"),
Local(asia, "Asia"),
Local(atlantic, "Atlantic"),
Local(australia, "Australia"),
Local(brazil, "Brazil"),
Local(canada, "Canada"),
Local(chile, "Chile"),
Local(europe, "Europe"),
Local(indian, "Indian"),
Local(mexico, "Mexico"),
Local(pacific, "Pacific"),
Local(us, "US"),
];

@ -1,8 +1,7 @@
import 'package:jade_gui/Locales/locales.dart';
import 'package:jade_gui/classes/desktop.dart'; import 'package:jade_gui/classes/desktop.dart';
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
class installPrefs { class InstallPrefs {
final Location locale; final Location locale;
final String keymap; final String keymap;
final String layout; final String layout;
@ -19,7 +18,7 @@ class installPrefs {
final bool ipv6; final bool ipv6;
final bool enableTimeshift; final bool enableTimeshift;
installPrefs({ InstallPrefs({
this.locale = const Location(), this.locale = const Location(),
this.keymap = "", this.keymap = "",
this.layout = "", this.layout = "",

@ -20,11 +20,11 @@ Widget desktopTemplate(desktop, setDesktop, currDesktop) {
style: TextButton.styleFrom( style: TextButton.styleFrom(
primary: Colors.white, primary: Colors.white,
backgroundColor: currDesktop.name == desktop.name backgroundColor: currDesktop.name == desktop.name
? Color.fromARGB(100, 170, 40, 255) ? const Color.fromARGB(100, 170, 40, 255)
: Color.fromARGB(0, 170, 0, 255), : const Color.fromARGB(0, 170, 0, 255),
shadowColor: currDesktop.name == desktop.name shadowColor: currDesktop.name == desktop.name
? Color.fromARGB(100, 170, 0, 255) ? const Color.fromARGB(100, 170, 0, 255)
: Color.fromARGB(0, 170, 0, 255), : const Color.fromARGB(0, 170, 0, 255),
padding: const EdgeInsets.all(10), padding: const EdgeInsets.all(10),
), ),
child: Text( child: Text(

@ -1,5 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:jade_gui/classes/installPrefs.dart'; import 'package:jade_gui/classes/install_prefs.dart';
import 'package:jade_gui/classes/desktop.dart'; import 'package:jade_gui/classes/desktop.dart';
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
import 'dart:convert'; import 'dart:convert';
@ -8,7 +8,7 @@ import 'dart:io';
test(setOutput, running, setRunning, config) async { test(setOutput, running, setRunning, config) async {
if (!running) { if (!running) {
const filename = "/tmp/jade.json"; const filename = "/tmp/jade.json";
var file = await File(filename).writeAsString(config); await File(filename).writeAsString(config);
var process = var process =
await Process.start('pkexec', ['jade', 'config', '/tmp/jade.json']); await Process.start('pkexec', ['jade', 'config', '/tmp/jade.json']);
process.stdout.transform(utf8.decoder).forEach(setOutput); process.stdout.transform(utf8.decoder).forEach(setOutput);
@ -36,7 +36,7 @@ Widget install(
running, running,
setRunning, setRunning,
) { ) {
installPrefs prefs = installPrefs( InstallPrefs prefs = InstallPrefs(
locale: locale, locale: locale,
keymap: keymap, keymap: keymap,
layout: layout, layout: layout,
@ -78,7 +78,7 @@ Widget install(
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
border: Border.all(color: Colors.black), border: Border.all(color: Colors.black),
color: Color.fromARGB(255, 15, 15, 15), color: const Color.fromARGB(255, 15, 15, 15),
//color: Colors.black, //color: Colors.black,
/*boxShadow: const [ /*boxShadow: const [
BoxShadow( BoxShadow(

@ -1,7 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:jade_gui/functions/location/region.dart'; import 'package:jade_gui/functions/location/region.dart';
import 'package:jade_gui/functions/location/location.dart'; import 'package:jade_gui/functions/location/location.dart';
import 'package:jade_gui/Locales/locales.dart'; import 'package:jade_gui/locales/locales.dart';
Widget locale(next, nextPage, selectlocation, isnextpage) { Widget locale(next, nextPage, selectlocation, isnextpage) {
Widget widget; Widget widget;

@ -1,8 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:jade_gui/Locales/locales.dart'; import 'package:jade_gui/locales/locales.dart';
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
Location choosenLocPack = Location(); Location choosenLocPack = const Location();
Widget locationTemplate(location, nextSlide) { Widget locationTemplate(location, nextSlide) {
return Container( return Container(
padding: const EdgeInsets.all(8), padding: const EdgeInsets.all(8),

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> africa = [ List<Location> africa = const [
Location( Location(
region: "Africa", region: "Africa",
location: "Abidjan", location: "Abidjan",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> america = [ List<Location> america = const [
Location( Location(
region: "America", region: "America",
location: "Adak", location: "Adak",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> antarctica = [ List<Location> antarctica = const [
Location( Location(
region: "Antarctica", region: "Antarctica",
location: "Casey", location: "Casey",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> arctic = [ List<Location> arctic = const [
Location( Location(
region: "Arctic", region: "Arctic",
location: "Longyearbyen", location: "Longyearbyen",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> asia = [ List<Location> asia = const [
Location( Location(
region: "Asia", region: "Asia",
location: "Aden", location: "Aden",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> atlantic = [ List<Location> atlantic = const [
Location( Location(
region: "atlantic", region: "atlantic",
location: "Azores", location: "Azores",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> australia = [ List<Location> australia = const [
Location( Location(
region: "Australia", region: "Australia",
location: "Adelaide", location: "Adelaide",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> brazil = [ List<Location> brazil = const [
Location( Location(
region: "Brazil", region: "Brazil",
location: "Acre", location: "Acre",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> canada = [ List<Location> canada = const [
Location( Location(
region: "canada", region: "canada",
location: "Atlantic", location: "Atlantic",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> chile = [ List<Location> chile = const [
Location( Location(
region: "Chile", region: "Chile",
location: "Continental", location: "Continental",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> europe = [ List<Location> europe = const [
Location( Location(
region: "Europe", region: "Europe",
location: "Amsterdam", location: "Amsterdam",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> indian = [ List<Location> indian = const [
Location( Location(
region: "Indian", region: "Indian",
location: "Antananarivo", location: "Antananarivo",

@ -0,0 +1,41 @@
import 'package:jade_gui/locales/arctic.dart';
import 'package:jade_gui/locales/africa.dart';
import 'package:jade_gui/locales/america.dart';
import 'package:jade_gui/locales/antarctica.dart';
import 'package:jade_gui/locales/asia.dart';
import 'package:jade_gui/locales/atlantic.dart';
import 'package:jade_gui/locales/australia.dart';
import 'package:jade_gui/locales/brazil.dart';
import 'package:jade_gui/locales/canada.dart';
import 'package:jade_gui/locales/chile.dart';
import 'package:jade_gui/locales/europe.dart';
import 'package:jade_gui/locales/indian.dart';
import 'package:jade_gui/locales/mexico.dart';
import 'package:jade_gui/locales/pacific.dart';
import 'package:jade_gui/locales/us.dart';
import 'package:jade_gui/classes/location.dart';
class Local {
List<Location> location = const [Location()];
String name = "";
Local(this.location, this.name);
}
List<Local> locations = [
Local(africa, "Africa"),
Local(america, "America"),
Local(antarctica, "Antarctica"),
Local(arctic, "Arctic"),
Local(asia, "Asia"),
Local(atlantic, "Atlantic"),
Local(australia, "Australia"),
Local(brazil, "Brazil"),
Local(canada, "Canada"),
Local(chile, "Chile"),
Local(europe, "Europe"),
Local(indian, "Indian"),
Local(mexico, "Mexico"),
Local(pacific, "Pacific"),
Local(us, "US"),
];

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> mexico = [ List<Location> mexico = const [
Location( Location(
region: "Mexico", region: "Mexico",
location: "BajaNorte", location: "BajaNorte",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> pacific = [ List<Location> pacific = const [
Location( Location(
region: "Pacific", region: "Pacific",
location: "Apia", location: "Apia",

@ -1,6 +1,6 @@
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
List<Location> us = [ List<Location> us = const [
Location( Location(
region: "US", region: "US",
location: "Alaska", location: "Alaska",
Loading…
Cancel
Save