Skip to main content
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

Behavior

  • NeoApp overrides neoConfigProvider with the seeded config before the first frame.
  • Hold-to-confirm buttons pass enableHaptics: false into NeoInteractable and run their own feedback.
Last modified on September 30, 2026