- Wallet EnakPoint & EnakCoin: beranda, riwayat, saldo kedaluwarsa, kode bayar, tukar EnakCoin, transfer - PIN (buat, ganti, lupa), outlet, riwayat order, game spin - Halaman community, webview, coming soon, dan ikon menu beranda baru - Redesign Reward Saya: kartu tiket, filter chip, detail kode + QR - Hapus customer point loader, menu, dan checkout lama - Base URL ke enaklo-pos-api.altru.id Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
61 lines
1.7 KiB
Dart
61 lines
1.7 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../../../../common/theme/theme.dart';
|
|
import '../../../components/button/button.dart';
|
|
|
|
/// Layar sukses untuk tukar dan transfer.
|
|
class WalletResultView extends StatelessWidget {
|
|
const WalletResultView({
|
|
super.key,
|
|
required this.title,
|
|
required this.amountText,
|
|
required this.lines,
|
|
required this.onDone,
|
|
});
|
|
|
|
final String title;
|
|
final String amountText;
|
|
final List<String> lines;
|
|
final VoidCallback onDone;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SafeArea(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(20),
|
|
child: Column(
|
|
children: [
|
|
const Spacer(),
|
|
const Icon(Icons.check_circle, color: AppColor.success, size: 72),
|
|
const SizedBox(height: 16),
|
|
Text(
|
|
title,
|
|
style: AppStyle.xl.copyWith(fontWeight: FontWeight.w700),
|
|
textAlign: TextAlign.center,
|
|
),
|
|
const SizedBox(height: 8),
|
|
Text(
|
|
amountText,
|
|
style: AppStyle.h4.copyWith(fontWeight: FontWeight.w700),
|
|
textAlign: TextAlign.center,
|
|
),
|
|
const SizedBox(height: 16),
|
|
...lines.map(
|
|
(line) => Padding(
|
|
padding: const EdgeInsets.only(bottom: 6),
|
|
child: Text(
|
|
line,
|
|
style: AppStyle.md.copyWith(color: AppColor.textSecondary),
|
|
textAlign: TextAlign.center,
|
|
),
|
|
),
|
|
),
|
|
const Spacer(),
|
|
AppElevatedButton(title: 'Selesai', onPressed: onDone),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|