Skip to content

Commit

Permalink
Merge pull request #786 from givtnl/bug/KIDS-1006-day8-skip-sometimes…
Browse files Browse the repository at this point in the history
…-goes-to-continue-flow

Bugfix: Clicking skip on day 8 sometimes goes to the wrong flow (KIDS-1006)
  • Loading branch information
TammiLion authored Jun 7, 2024
2 parents ab37424 + b2ba6b4 commit 56be3b4
Showing 1 changed file with 24 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,41 +108,32 @@ class GenerosityDailyCard extends StatelessWidget {
Padding(
padding: const EdgeInsets.only(top: 8),
child: TextButton(
onPressed: () {
// TODO integrate with add member & navigate to VPC KIDS-957
context.push(
'${Pages.generosityChallenge.path}/${task.redirect}',
extra: context.read<GenerosityChallengeCubit>(),
);
},
child: GestureDetector(
onTap: () => Navigator.of(context).push(
const GenerosityChallengeVpcSetupPage().toRoute(
context,
),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Skip',
style: Theme.of(context)
.textTheme
.titleLarge
?.copyWith(
color: AppTheme.givtGreen40,
fontWeight: FontWeight.w700,
fontFamily: 'Rouna',
),
),
const SizedBox(width: 8),
const FaIcon(
FontAwesomeIcons.arrowRight,
color: AppTheme.givtGreen40,
),
],
onPressed: () => Navigator.of(context).push(
const GenerosityChallengeVpcSetupPage().toRoute(
context,
),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Skip',
style: Theme.of(context)
.textTheme
.titleLarge
?.copyWith(
color: AppTheme.givtGreen40,
fontWeight: FontWeight.w700,
fontFamily: 'Rouna',
),
),
const SizedBox(width: 8),
const FaIcon(
FontAwesomeIcons.arrowRight,
color: AppTheme.givtGreen40,
),
],
),
),
),
],
Expand Down

0 comments on commit 56be3b4

Please sign in to comment.