73 lines
2.1 KiB
Dart
73 lines
2.1 KiB
Dart
// lib\app\modules\splash-screen\views\splash_screen_view.dart
|
|
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
import '../controllers/splash_screen_controller.dart';
|
|
|
|
class SplashScreenView extends GetView<SplashScreenController> {
|
|
const SplashScreenView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
Get.put(SplashScreenController());
|
|
|
|
return Scaffold(
|
|
body: Container(
|
|
decoration: const BoxDecoration(
|
|
gradient: LinearGradient(
|
|
begin: Alignment.topLeft,
|
|
end: Alignment.bottomRight,
|
|
colors: [
|
|
Color(0xFF4DD0E1),
|
|
Color(0xFF1976D2),
|
|
],
|
|
),
|
|
),
|
|
child: Stack(
|
|
children: [
|
|
Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
// Logo langsung tanpa background box
|
|
Image.asset(
|
|
'assets/images/logo.png',
|
|
width: 140,
|
|
height: 140,
|
|
fit: BoxFit.contain,
|
|
),
|
|
const SizedBox(height: 30),
|
|
const Text(
|
|
'SMART INFUSE',
|
|
style: TextStyle(
|
|
color: Colors.white,
|
|
fontSize: 32,
|
|
fontWeight: FontWeight.bold,
|
|
letterSpacing: 1.2,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
// Credit di bagian bawah
|
|
Positioned(
|
|
bottom: 30,
|
|
left: 0,
|
|
right: 0,
|
|
child: Center(
|
|
child: Text(
|
|
'M Ferry A. 2026',
|
|
style: TextStyle(
|
|
color: Colors.white.withOpacity(0.8),
|
|
fontSize: 12,
|
|
fontWeight: FontWeight.w500,
|
|
letterSpacing: 0.5,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
} |