mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2025-12-16 09:28:53 +00:00
81 lines
2.3 KiB
Dart
81 lines
2.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
import './../widgets/background.dart';
|
|
import './../providers/settings_provider.dart';
|
|
import './../models/settings.dart';
|
|
|
|
class HomeScreen extends StatelessWidget {
|
|
const HomeScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Stack(
|
|
children: [
|
|
if (Provider.of<SettingsProvider>(context).getSelectedBackgroundType !=
|
|
BackgroundType.disable)
|
|
const Background()
|
|
else
|
|
Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
SizedBox(
|
|
height: 300,
|
|
child: Image.asset('assets/images/Lee6.png'),
|
|
),
|
|
const Center(
|
|
child: Padding(
|
|
padding: EdgeInsets.all(8.0),
|
|
child: Text(
|
|
'Babylonia Terminal',
|
|
style: TextStyle(
|
|
fontSize: 34,
|
|
),
|
|
),
|
|
),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
SizedBox(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(50.0),
|
|
child: Row(
|
|
children: [
|
|
const Expanded(
|
|
child: SizedBox(),
|
|
),
|
|
const Expanded(
|
|
child: SizedBox(),
|
|
),
|
|
Expanded(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
children: [
|
|
ConstrainedBox(
|
|
constraints: const BoxConstraints(
|
|
maxHeight: 50,
|
|
),
|
|
child: ElevatedButton(
|
|
style: ElevatedButton.styleFrom(
|
|
backgroundColor: Colors.blue[500],
|
|
),
|
|
onPressed: () {},
|
|
child: const Center(
|
|
child: Text("Download"),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|