105 lines
3.6 KiB
Dart
105 lines
3.6 KiB
Dart
// import 'package:coffescan/widgets/bottom_nav.dart';
|
|
import 'package:flutter/material.dart';
|
|
import '../../widgets/color.dart';
|
|
import '../../routes/app_routes.dart';
|
|
|
|
class SplashTwo extends StatelessWidget {
|
|
const SplashTwo({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: AppColors.background,
|
|
body: Stack(
|
|
children: [
|
|
// Bagian Tengah: Gambar dan Teks (Rata Kiri)
|
|
Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 40.0),
|
|
child: Column(
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.center, // Posisi di tengah layar
|
|
crossAxisAlignment:
|
|
CrossAxisAlignment.start, // Semua konten rata kiri
|
|
children: [
|
|
// Logo Biji Kopi ukuran 200x200
|
|
Center(
|
|
// Tetap bungkus Center jika gambar ingin di tengah secara horizontal
|
|
child: Image.asset(
|
|
'assets/images/bean.png',
|
|
width: 200,
|
|
height: 200,
|
|
fit: BoxFit.contain,
|
|
),
|
|
),
|
|
const SizedBox(height: 40),
|
|
|
|
// Judul Utama Rata Kiri
|
|
Text(
|
|
"Kenali Jenis Biji Kopi Secara Cerdas",
|
|
textAlign: TextAlign.left,
|
|
style: const TextStyle(
|
|
fontFamily: 'Montserrat',
|
|
color: Colors.black,
|
|
fontSize: 24,
|
|
fontWeight: FontWeight.w700,
|
|
height: 1.2,
|
|
),
|
|
),
|
|
const SizedBox(height: 20),
|
|
|
|
// Deskripsi Rata Kiri
|
|
Text(
|
|
"Aplikasi CoffeeScan membantu mengklasifikasikan jenis biji kopi Arabika dan Robusta dengan tingkat roasting berdasarkan citra menggunakan kecerdasan buatan.",
|
|
textAlign: TextAlign.left,
|
|
style: const TextStyle(
|
|
fontFamily: 'Montserrat',
|
|
color: Colors.black87,
|
|
fontSize: 15,
|
|
fontWeight: FontWeight.w400,
|
|
height: 1.5,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
|
|
// Tombol di posisi bawah (100 dari bawah)
|
|
Align(
|
|
alignment: Alignment.bottomCenter,
|
|
child: Padding(
|
|
padding: const EdgeInsets.only(
|
|
bottom: 100.0,
|
|
), // Jarak 100 dari bawah
|
|
child: SizedBox(
|
|
width: 250, // Ukuran lebar 250
|
|
height: 50, // Ukuran tinggi 50
|
|
child: ElevatedButton(
|
|
style: ElevatedButton.styleFrom(
|
|
backgroundColor: const Color(0xFFFDEBDB),
|
|
foregroundColor: Colors.black,
|
|
elevation: 0,
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(15),
|
|
),
|
|
),
|
|
onPressed: () {
|
|
Navigator.pushReplacementNamed(context, AppRoutes.mainNav);
|
|
},
|
|
child: Text(
|
|
"Mulai Klasifikasi",
|
|
style: const TextStyle(
|
|
fontFamily: 'Montserrat',
|
|
fontSize: 16,
|
|
fontWeight: FontWeight.w700,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|