import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:ui/routes/app_routes.dart'; class WelcomePage extends StatelessWidget { const WelcomePage({super.key}); @override Widget build(BuildContext context) { return Scaffold( body: Container( decoration: BoxDecoration( color: Colors.white, image: const DecorationImage( image: AssetImage("assets/images/welcomescreen.png"), fit: BoxFit.cover, ), ), child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ const Text( "E-Learning", style: TextStyle( fontSize: 32, fontWeight: FontWeight.bold, color: Colors.black, ), ), const SizedBox(height: 10), const Text( "SD NEGERI", style: TextStyle( fontSize: 16, color: Colors.black, ), ), const SizedBox(height: 20), ElevatedButton( onPressed: () { Get.offAllNamed(AppRoutes .selection); // Tidak bisa kembali ke Welcome setelah pindah }, style: ElevatedButton.styleFrom( backgroundColor: Colors.teal, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(30), ), padding: const EdgeInsets.symmetric(horizontal: 40, vertical: 12), ), child: const Text( "Masuk", style: TextStyle(fontSize: 18, color: Colors.white), ), ), ], ), ), ), ); } }