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:
@@ -53,24 +53,12 @@ class OutletTile extends StatelessWidget {
|
||||
style: AppStyle.xs.copyWith(color: AppColor.textSecondary),
|
||||
),
|
||||
],
|
||||
if (outlet.acceptsPointPayment ||
|
||||
outlet.earnsPoints ||
|
||||
outlet.earnsCoins) ...[
|
||||
if (outlet.earnsPoints || outlet.earnsCoins) ...[
|
||||
const SizedBox(height: 8),
|
||||
Wrap(
|
||||
spacing: 6,
|
||||
runSpacing: 6,
|
||||
children: [
|
||||
if (outlet.acceptsPointPayment)
|
||||
const _Chip(
|
||||
label: 'Bisa bayar pakai EnakPoint',
|
||||
icon: Icon(
|
||||
Icons.check_circle_rounded,
|
||||
size: 14,
|
||||
color: AppColor.primary,
|
||||
),
|
||||
highlighted: true,
|
||||
),
|
||||
if (outlet.earnsPoints)
|
||||
const _Chip(
|
||||
label: 'Dapat EnakPoint',
|
||||
@@ -100,24 +88,17 @@ class OutletTile extends StatelessWidget {
|
||||
}
|
||||
|
||||
class _Chip extends StatelessWidget {
|
||||
const _Chip({
|
||||
required this.label,
|
||||
required this.icon,
|
||||
this.highlighted = false,
|
||||
});
|
||||
const _Chip({required this.label, required this.icon});
|
||||
|
||||
final String label;
|
||||
final Widget icon;
|
||||
final bool highlighted;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||
decoration: BoxDecoration(
|
||||
color: highlighted
|
||||
? AppColor.primaryWithOpacity(0.08)
|
||||
: AppColor.background,
|
||||
color: AppColor.background,
|
||||
borderRadius: BorderRadius.circular(999),
|
||||
),
|
||||
child: Row(
|
||||
@@ -129,7 +110,7 @@ class _Chip extends StatelessWidget {
|
||||
label,
|
||||
style: AppStyle.xs.copyWith(
|
||||
fontSize: 10,
|
||||
color: highlighted ? AppColor.primary : AppColor.textPrimary,
|
||||
color: AppColor.textPrimary,
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user