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/location.dart';
class installPrefs {
class InstallPrefs {
final Location locale;
final String keymap;
final String layout;
@ -19,7 +18,7 @@ class installPrefs {
final bool ipv6;
final bool enableTimeshift;
installPrefs({
InstallPrefs({
this.locale = const Location(),
this.keymap = "",
this.layout = "",

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

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

@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'package:jade_gui/functions/location/region.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 widget;

@ -1,8 +1,8 @@
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';
Location choosenLocPack = Location();
Location choosenLocPack = const Location();
Widget locationTemplate(location, nextSlide) {
return Container(
padding: const EdgeInsets.all(8),

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

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

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

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

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

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

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

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

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

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

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

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

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

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