Update: 2026-06-15 01:37:40
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user