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, NeoButton plays light haptic on press down and heavy on release, unless overridden by NeoButton.enableHaptic. Ignored for hold-to-confirm buttons.

Provider

NotifierProvider
Exposes the current NeoConfig. Watch it for reactive updates, or call updateConfig on the notifier to change settings at runtime.

Best Practices

  • Prefer seeding config through NeoApp.config so the first frame uses your intended defaults.
  • Use NeoButton.enableHaptic for one-off exceptions instead of flipping the global flag.

Integration Notes

  • NeoApp overrides neoConfigProvider with your seeded config so there is no post-frame flash.
  • Hold-to-confirm buttons manage their own feedback and ignore both enableButtonHaptics and enableHaptic.
Last modified on August 6, 2026