NeoConfig holds framework-wide settings that apply before the first frame. Pass it to NeoApp.config, or update it at runtime through neoConfigProvider.
Example
Properties
Content
bool
default:"true"
When
true, NeoInteractable plays light haptics on press (and on release after the min-press duration), unless overridden by NeoInteractable.enableHaptics. NeoButton uses this shell for press haptics. Hold-to-confirm buttons disable interactable haptics.bool
default:"true"
When
true, NeoToast.show and typed NeoToast.update play presentation haptics: light for loading show, heavy for other non-danger types, error for danger.Provider
NotifierProvider
Exposes the current
NeoConfig. Watch it for reactive updates, or call updateConfig on the notifier to change settings at runtime.Best Practices
- Seed config with
NeoApp.configinstead of writingneoConfigProviderafter the first frame. - Override
NeoInteractable.enableHapticsfor one control. Leave the global flag for the whole app.
Behavior
NeoAppoverridesneoConfigProviderwith the seeded config before the first frame.- Hold-to-confirm buttons pass
enableHaptics: falseintoNeoInteractableand run their own feedback.

