Description
Add a new Summary button on the lesson details screen (LessonDetailsScreen) that opens a dedicated summary screen with a detailed recap of the lesson content.
Current Behavior
The LessonDetailsScreen currently shows:
- Lesson title and topic
- YouTube player
- Description text
- Check My Knowledge button at the bottom
Desired Behavior
- Add a new Summary (Конспект) button below the Check My Knowledge button in LessonDetailsScreen.
- Tapping the button navigates to a new LessonSummaryScreen.
- The summary screen displays a detailed summary of the lesson content (key concepts, important points, etc.).
UI/UX Details
- Button placement: Directly below the Check My Knowledge button in LessonDetailsScreen (�pps/condor_code_app/lib/ui/screens/lesson_details/lesson_details_screen.dart).
- Button style: Should use AppButtonStyles.mainButtonStyle or a secondary style to distinguish from the primary action.
- Summary screen: New screen, e.g. LessonSummaryScreen, accessible via GoRouter.
- Data source: The summary content should come from the Lesson model — likely requires adding a summary or summaryContent field.
Data Model Considerations
The current Lesson model (packages/domain/lib/models/lesson.dart) contains:
- id, itle, opic, description, youtubeUrl, courseId, isYouTubeLesson, sortOrder
Need to add: summary (String?) — a detailed lesson summary for the new screen.
Acceptance Criteria
Files Likely to Change
- �pps/condor_code_app/lib/ui/screens/lesson_details/lesson_details_screen.dart
- �pps/condor_code_app/lib/ui/screens/lesson_summary/ (new folder)
- �pps/condor_code_app/lib/ui/navigation/route_constants.dart
- �pps/condor_code_app/lib/ui/navigation/go_router.dart
- packages/domain/lib/models/lesson.dart
- packages/data/lib/data_sources/remote/models/lesson_remote.dart
- packages/data/lib/mappers/lesson_mapper.dart
- packages/data/lib/repository/lessons_repository_impl.dart
Description
Add a new Summary button on the lesson details screen (LessonDetailsScreen) that opens a dedicated summary screen with a detailed recap of the lesson content.
Current Behavior
The LessonDetailsScreen currently shows:
Desired Behavior
UI/UX Details
Data Model Considerations
The current Lesson model (packages/domain/lib/models/lesson.dart) contains:
Need to add: summary (String?) — a detailed lesson summary for the new screen.
Acceptance Criteria
Files Likely to Change