52 lines
1.5 KiB
Dart
52 lines
1.5 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../common/app_colors.dart';
|
|
import '../common/ui_helpers.dart';
|
|
import 'custom_elevated_button.dart';
|
|
|
|
class DuolingoAssessmentReviewSection extends StatelessWidget {
|
|
final GestureTapCallback? onTap;
|
|
const DuolingoAssessmentReviewSection({super.key, this.onTap});
|
|
|
|
@override
|
|
Widget build(BuildContext context) => _buildReviewContainer();
|
|
|
|
Widget _buildReviewContainer() => Container(
|
|
width: double.maxFinite,
|
|
color: kcDeepGreen.withValues(alpha: 0.1),
|
|
padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 10),
|
|
child: _buildReviewColumn(),
|
|
);
|
|
|
|
Widget _buildReviewColumn() => Column(
|
|
children: [
|
|
_buildTitle(),
|
|
verticalSpaceMedium,
|
|
_buildSampleAnswer(),
|
|
verticalSpaceMedium,
|
|
_buildContinueButton(),
|
|
verticalSpaceMedium,
|
|
],
|
|
);
|
|
Widget _buildTitle() => Text(
|
|
'Review Sample Answer:',
|
|
style: style18G700,
|
|
textAlign: TextAlign.center,
|
|
);
|
|
|
|
Widget _buildSampleAnswer() => Text(
|
|
'The photo shows a woman sitting at a desk while working on her laptop. She appears focused and is surrounded by books and papers. The room looks bright and organized.',
|
|
style: style14DG400,
|
|
textAlign: TextAlign.center,
|
|
);
|
|
|
|
Widget _buildContinueButton() => CustomElevatedButton(
|
|
height: 55,
|
|
onTap: onTap,
|
|
text: 'Continue',
|
|
borderRadius: 12,
|
|
foregroundColor: kcWhite,
|
|
backgroundColor: kcPrimaryColor,
|
|
);
|
|
}
|