Dynamic Label Widget
Component Detail
User Interface
low complexity
mobilefrontend
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Utility widget that accepts a label key and renders the organization-specific string for that key. Falls back to the default value defined in constants if no custom label is configured, ensuring the UI is always fully rendered regardless of configuration completeness.
dynamic-label-widget
Responsibilities
- Accept a label key and resolve the organization-specific string
- Apply fallback default value when no custom label is set
- Subscribe to label cache updates for reactive re-rendering
- Support optional text styling overrides while preserving label content
Interfaces
DynamicLabel({required key, TextStyle? style})
resolveLabel(key)
getFallback(key)
watchLabel(key)
buildText(resolvedLabel, style)
Related Data Entities (1)
Data entities managed by this component