|
|
@ -1,71 +1,137 @@
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
|
|
|
|
Widget welcome(next) {
|
|
|
|
Widget welcome(next) {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
//decoration: const BoxDecoration(
|
|
|
|
image: DecorationImage(
|
|
|
|
// image: DecorationImage(
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
// fit: BoxFit.cover,
|
|
|
|
image: AssetImage('assets/welcome-bg-alt.png'),
|
|
|
|
// image: AssetImage('assets/welcome-bg-alt.png'),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
//),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
const SizedBox(height: 50),
|
|
|
|
Row(
|
|
|
|
const Text(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
'Welcome to Crystal Linux',
|
|
|
|
children: const [
|
|
|
|
style: TextStyle(
|
|
|
|
Text(
|
|
|
|
fontSize: 30,
|
|
|
|
'Welcome to Jade',
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color.fromARGB(255, 169, 0, 255),
|
|
|
|
fontSize: 50,
|
|
|
|
),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
|
|
|
color: Color.fromARGB(255, 169, 0, 255)),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 10),
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: const [
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
Text(
|
|
|
|
|
|
|
|
'Installing crystal made easy',
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 40,
|
|
|
|
|
|
|
|
color: Color.fromARGB(255, 169, 0, 255),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
ElevatedButton(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
children: [
|
|
|
|
primary: const Color.fromARGB(0, 23, 23, 23),
|
|
|
|
Column(
|
|
|
|
backgroundColor: const Color.fromARGB(0, 23, 23, 23),
|
|
|
|
children: [
|
|
|
|
elevation: 0,
|
|
|
|
TextButton(
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
onPressed: () {
|
|
|
|
),
|
|
|
|
next();
|
|
|
|
onPressed: () {
|
|
|
|
},
|
|
|
|
exit(0);
|
|
|
|
child: const Text('Start'),
|
|
|
|
},
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
child: Container(
|
|
|
|
primary: Colors.white,
|
|
|
|
width: 500,
|
|
|
|
backgroundColor: const Color.fromARGB(255, 169, 0, 255),
|
|
|
|
height: 500,
|
|
|
|
minimumSize: const Size(80, 50),
|
|
|
|
padding: const EdgeInsets.all(10),
|
|
|
|
padding: const EdgeInsets.all(10),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
|
|
|
|
border: Border.all(color: Colors.black),
|
|
|
|
|
|
|
|
color: const Color.fromARGB(255, 30, 30, 30),
|
|
|
|
|
|
|
|
boxShadow: const [
|
|
|
|
|
|
|
|
BoxShadow(
|
|
|
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
|
|
|
blurRadius: 2,
|
|
|
|
|
|
|
|
offset: Offset(-2, 3),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: Expanded(
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
|
|
|
children: const [
|
|
|
|
|
|
|
|
SizedBox(height: 20),
|
|
|
|
|
|
|
|
Text("Try Crystal Linux without installing",
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 20,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
|
|
|
color: Colors.white)),
|
|
|
|
|
|
|
|
SizedBox(height: 5),
|
|
|
|
|
|
|
|
Image(
|
|
|
|
|
|
|
|
image: AssetImage(
|
|
|
|
|
|
|
|
'assets/crystal-logo-minimal.png',
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
height: 400,
|
|
|
|
|
|
|
|
fit: BoxFit.scaleDown,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
const SizedBox(width: 20),
|
|
|
|
|
|
|
|
ElevatedButton(
|
|
|
|
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
|
|
|
|
primary: const Color.fromARGB(0, 23, 23, 23),
|
|
|
|
|
|
|
|
backgroundColor: const Color.fromARGB(0, 23, 23, 23),
|
|
|
|
|
|
|
|
elevation: 0,
|
|
|
|
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
onPressed: next,
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
width: 500,
|
|
|
|
|
|
|
|
height: 500,
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(10),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
|
|
|
|
border: Border.all(color: Colors.black),
|
|
|
|
|
|
|
|
color: const Color.fromARGB(255, 30, 30, 30),
|
|
|
|
|
|
|
|
boxShadow: const [
|
|
|
|
|
|
|
|
BoxShadow(
|
|
|
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
|
|
|
blurRadius: 2,
|
|
|
|
|
|
|
|
offset: Offset(-2, 3),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 10),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(width: 30),
|
|
|
|
child: Expanded(
|
|
|
|
],
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
|
|
|
children: const [
|
|
|
|
|
|
|
|
SizedBox(height: 20),
|
|
|
|
|
|
|
|
Text("Start the installation",
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize: 20,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
|
|
|
color: Colors.white)),
|
|
|
|
|
|
|
|
SizedBox(height: 5),
|
|
|
|
|
|
|
|
Image(
|
|
|
|
|
|
|
|
image: AssetImage(
|
|
|
|
|
|
|
|
'assets/jade_logo.png',
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
height: 400,
|
|
|
|
|
|
|
|
fit: BoxFit.scaleDown,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 7)
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
|
|
|
|
const Text(
|
|
|
|
|
|
|
|
"Starting Crystal linux without installing will not change anything on your computer,",
|
|
|
|
|
|
|
|
style: TextStyle(fontSize: 20, color: Colors.white)),
|
|
|
|
|
|
|
|
const Text(
|
|
|
|
|
|
|
|
"it's recommended to try that first to see if everything works",
|
|
|
|
|
|
|
|
style: TextStyle(fontSize: 20, color: Colors.white))
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|