TKK_E32222567_Gps/lib/app/modules/start/views/start_view.dart

72 lines
2.1 KiB
Dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../controllers/start_controller.dart';
class StartView extends GetView<StartController> {
const StartView({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
width: double.infinity,
padding: const EdgeInsets.symmetric(horizontal: 32.0),
decoration: const BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Color(0xFF7EFAB7),
Color(0xFF4FB9E4),
],
),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Spacer(flex: 2),
// Logo
Image.asset(
'assets/images/safebike.png', // ganti dengan path logo Anda
height: 150,
),
const SizedBox(height: 20),
const Text(
'Safebike',
style: TextStyle(
fontSize: 28,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
const Spacer(flex: 3),
// Get Started Button
SizedBox(
width: double.infinity,
height: 60,
child: ElevatedButton(
onPressed: () => controller.Home(),
style: ElevatedButton.styleFrom(
backgroundColor: Colors.white,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
),
child: const Text(
'Get Started',
style: TextStyle(
color: Color(0xFF3D0066),
fontSize: 18,
fontWeight: FontWeight.w600,
),
),
),
),
const SizedBox(height: 40),
],
),
),
);
}
}