Update: 2026-06-15 01:37:40

This commit is contained in:
Hamza-Ayed
2026-06-15 01:37:41 +03:00
parent f021ba5a35
commit 2321b78244
164 changed files with 1356 additions and 1560 deletions

View File

@@ -196,9 +196,18 @@ class ChallengesPage extends StatelessWidget {
SizedBox(
width: double.infinity,
child: ElevatedButton.icon(
onPressed: () => cc.claimReward(c),
icon: const Icon(Icons.card_giftcard_rounded, size: 18),
label: Text('Claim Reward'.tr),
onPressed: cc.isClaiming(c.id) ? null : () => cc.claimReward(c),
icon: cc.isClaiming(c.id)
? const SizedBox(
width: 18,
height: 18,
child: CircularProgressIndicator(
color: Colors.white,
strokeWidth: 2,
),
)
: const Icon(Icons.card_giftcard_rounded, size: 18),
label: Text(cc.isClaiming(c.id) ? 'Claiming...'.tr : 'Claim Reward'.tr),
style: ElevatedButton.styleFrom(
backgroundColor: c.color,
foregroundColor: Colors.white,