Skip to content

Achievements#3

Merged
AdamDybcio merged 2 commits into
masterfrom
achievements
Oct 5, 2025
Merged

Achievements#3
AdamDybcio merged 2 commits into
masterfrom
achievements

Conversation

@AdamDybcio

Copy link
Copy Markdown
Owner

This pull request introduces a comprehensive achievements feature to the app, including data models, business logic, UI components, and dependency injection setup. The changes enable tracking and unlocking of achievements based on user activity, and provide a dedicated achievements page with a responsive and themed UI.

Achievements Feature Implementation

  • Added the Achievement model and enums to represent different categories and levels of achievements.
  • Created a constant list of achievements with localized titles, descriptions, and icons, as well as a helper for category descriptions in achievements_list.dart. (F74d72aR1)

Business Logic and State Management

  • Implemented AchievementsBloc using HydratedBloc to manage achievement unlocking logic based on quiz activity, correct answers, levels, and quiz time, with persistence support.
  • Added supporting event (CheckAchievements) and state (AchievementsState) classes for the achievements bloc, including serialization logic for state persistence. [1] [2]

UI Integration and Dependency Injection

  • Registered AchievementsBloc in the dependency injection setup (lib/di.dart) for global access. [1] [2]
  • Implemented a new AchievementPage with a themed app bar, responsive layout, and integration of achievements content, level card, and theme toggle button.

…nents

- Added AchievementsEvent and AchievementsState classes for managing achievements logic.
- Created AchievementPage with a responsive AppBar and layout for displaying achievements.
- Introduced AchievementOverlay for displaying achievement notifications.
- Developed AchievementWidget to visually represent achievements with animations.
- Integrated achievements tracking in QuizSummary and QuizSummaryStats, triggering achievement checks based on user performance.
- Added localization strings for various achievement titles and descriptions.
- Updated main screen to include AchievementPage in navigation.
- Introduced enums for AchievementCategory and AchievementLevel to categorize achievements.
- Enhanced Helpers utility to show achievement dialogs.
@AdamDybcio AdamDybcio merged commit 7a5213c into master Oct 5, 2025
2 checks passed
@AdamDybcio AdamDybcio deleted the achievements branch October 5, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant