feat: integrate enakgame and voucher
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import 'package:auto_route/auto_route.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
|
||||
import '../../../../../application/auth/auth_bloc.dart';
|
||||
import '../../../../../common/theme/theme.dart';
|
||||
import '../../../../../sample/promo_sample_data.dart';
|
||||
import '../../../../components/button/button.dart';
|
||||
@@ -98,9 +100,14 @@ class PromoDetailPage extends StatelessWidget {
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 12, 16, 12),
|
||||
child: AppElevatedButton(
|
||||
title: isReward ? 'Lihat Reward Saya' : 'Cari Outlet',
|
||||
title: isReward ? 'Buka EnakReward' : 'Cari Outlet',
|
||||
// Voucher dan outlet memakai API customer: tamu masuk dulu.
|
||||
onPressed: () => context.router.push(
|
||||
isReward ? const RewardRoute() : const OutletRoute(),
|
||||
!context.read<AuthBloc>().state.isAuthenticated
|
||||
? const OnboardingRoute()
|
||||
: isReward
|
||||
? const RewardRoute()
|
||||
: const OutletRoute(),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user