import 'package:auto_route/auto_route.dart'; import 'package:flutter/material.dart'; import '../../../common/theme/theme.dart'; import '../../components/button/button.dart'; /// Halaman sementara untuk fitur yang belum tersedia. @RoutePage() class ComingSoonPage extends StatelessWidget { const ComingSoonPage({super.key, required this.title, this.iconPath}); final String title; /// Path aset ikon fitur, mis. `Assets.icons.enakshopIcon.path`. final String? iconPath; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text(title)), body: SafeArea( child: Padding( padding: const EdgeInsets.all(24), child: Column( children: [ const Spacer(), if (iconPath != null) Image.asset(iconPath!, width: 160, height: 160) else const Icon( Icons.hourglass_empty, size: 96, color: AppColor.primary, ), const SizedBox(height: 24), Text( 'Segera Hadir', style: AppStyle.h5.copyWith(fontWeight: FontWeight.w700), textAlign: TextAlign.center, ), const SizedBox(height: 8), Text( '$title sedang kami siapkan. Nantikan kehadirannya, ya!', style: AppStyle.md.copyWith(color: AppColor.textSecondary), textAlign: TextAlign.center, ), const Spacer(), AppElevatedButton( title: 'Kembali', onPressed: () => context.router.maybePop(), ), ], ), ), ), ); } }