feat: integrate enakgame and voucher
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s

This commit is contained in:
efrilm
2026-10-10 02:33:16 +07:00
parent e5515d5871
commit 38850b281f
104 changed files with 7122 additions and 8063 deletions
+6 -6
View File
@@ -21,11 +21,11 @@ class _MainPageState extends State<MainPage> {
context.read<AuthBloc>().add(const AuthEvent.fetchCurrentUser());
}
/// Kode bayar di kasir; PIN diminta di halamannya sendiri.
void _openPay() {
/// Beranda EnakPoint & EnakCoin: tukar, transfer, game, dan voucher.
void _openWallet() {
final isAuthenticated = context.read<AuthBloc>().state.isAuthenticated;
context.router.push(
isAuthenticated ? const PaymentCodeRoute() : const OnboardingRoute(),
isAuthenticated ? const WalletRoute() : const OnboardingRoute(),
);
}
@@ -48,11 +48,11 @@ class _MainPageState extends State<MainPage> {
body: child,
floatingActionButton: isKeyboardOpen
? null
: MainPayButton(onPressed: _openPay),
floatingActionButtonLocation: const MainPayButtonLocation(),
: MainWalletButton(onPressed: _openWallet),
floatingActionButtonLocation: const MainWalletButtonLocation(),
bottomNavigationBar: MainBottomNavbar(
tabsRouter: AutoTabsRouter.of(context),
onPayTap: _openPay,
onWalletTap: _openWallet,
),
);
},