renderDesktopView method
Implementation
Widget renderDesktopView(BuildContext context, QuizRecapWidgetState state) {
final quiz = state.widget.quiz;
final List<Widget> stepWidgets = [];
for (int i = 0; i < quiz.steps.length; i++) {
final step = quiz.steps[i];
stepWidgets.add(
StepSummaryWidget(
step: step,
textColor: Theme.of(context).colorScheme.onSurface,
//textColor: quiz.theme.textColor,
isCurrentActiveStep: quiz.currentDisplayedStep.stepKey == step.stepKey,
stepIndex: i,
),
);
}
return Column(
children: [
Row(
children: [
if(state.widget.toggleSeeRecap != null)
SizedBox(
width: 250,
child: OwlnextButton(
isOutlined: true,
callback: () {
if(state.widget.toggleSeeRecap != null) {
state.widget.toggleSeeRecap!();
}
},
customType: CustomButtonType(backgroundColor: Theme.of(context).colorScheme.primary),
child: const Row(
children: [
Icon(Icons.remove_red_eye_outlined, size: 12),
SizedBox(width: gap),
Text('Revenir au questionnaire'),
],
),
),
),
],
),
...stepWidgets,
],
);
}