core/constants/ — Application Constants
CommunitySingle source of truth for app constants
AuthorVantoan252003
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Centralizes all string literals and numeric configuration values used across the Flutter client to eliminate magic strings, reduce duplication, and make refactors and testing safe and predictable.
Core Features & Use Cases
- API endpoint catalog: central list of relative HTTP paths with {id} placeholders for dynamic segments so network code never hardcodes routes.
- Routing paths: go_router path constants with :param notation for consistent navigation and deep linking.
- Client configuration and keys: app-level timeouts, page sizes, Hive box names, secure storage keys, and socket event names as immutable static constants.
- Use Case: When adding a new backend endpoint and its UI route, update api_constants.dart and route_constants.dart to ensure the entire codebase references the same values.
Quick Start
Add a new endpoint by editing api_constants.dart and declare the path as a static const string using {id} placeholders for dynamic segments.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: core/constants/ — Application Constants Download link: https://github.com/Vantoan252003/Mozi/archive/main.zip#core-constants-application-constants Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.