Settings Menu Cards Widget
Component Detail
User Interface
low complexity
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Reusable widget that renders individual settings items as tappable card rows with a leading icon, label, optional subtitle, and trailing chevron or toggle. Supports both navigation-type items (leading to sub-screens) and action-type items (triggering in-place actions such as toggling a preference). Fully accessible with semantic labels, focus indicators, and minimum touch target compliance.
settings-menu-cards-widget
Responsibilities
- Render a single settings menu card with icon, title, subtitle, and action indicator
- Emit tap callbacks for navigation and action items
- Render toggle switches for boolean preferences with correct accessibility semantics
- Apply consistent theming and spacing from the design token system
Interfaces
SettingsMenuCard({required String title, String? subtitle, IconData? icon, VoidCallback? onTap, bool? toggleValue, ValueChanged<bool>? onToggle})
SettingsMenuCardGroup({required String groupTitle, required List<SettingsMenuCard> items})
setEnabled(bool enabled)
setToggleValue(bool value)