flutter_nerve library

Classes

BatterySense
Polls battery state every pollInterval and emits (level, isCharging) pairs.
LightSense
Wraps the light package to stream ambient lux values.
MotionSense
Wraps sensors_plus accelerometer events and emits normalized tilt values.
NerveBatteryIcon
An animated battery icon that visually reflects the current battery level and charging state from NerveState.
NerveBuilder
A widget that rebuilds whenever the NerveState changes — analogous to AnimatedBuilder but for sensory data.
NerveConnectivity
A pre-built connectivity banner that slides down when the network quality drops to NetworkQuality.poor or NetworkQuality.none.
NerveController
Central aggregator that fuses all sensor streams into NerveState updates.
NerveFakes
Testing utilities for flutter_nerve.
NerveGlow
A widget that wraps its child in an animated glowing border whose intensity tracks the device tilt magnitude from MotionSense.
NerveMonitor
A floating, draggable debug overlay that shows live NerveState readings.
NerveProvider
Root widget that provides a NerveController to the widget tree.
NervePulse
A widget that continuously pulses (scales) in sync with the ambient sound level.
NerveRoot
A stateful widget that initialises NerveController via NerveProvider.
NerveScaffold
A Scaffold that reacts to the current NerveState:
NerveShake
A widget that detects shake gestures by watching NerveState.tiltX/Y magnitude spikes from MotionSense.
NerveSpring
A widget that applies a physics-spring offset to its child driven by the device tilt from MotionSense.
NerveState
The current sensory snapshot of the device environment.
NerveTheme
Maps a NerveState snapshot to a ThemeData override.
NetworkSense
Wraps connectivity_plus and emits a NetworkQuality whenever connectivity changes.
ReactiveContainer
A Container whose color, scale, and blur react to NerveState.
SoundSense
Captures microphone amplitude using AudioRecorder from the record package and emits a normalized RMS level (0.0–1.0).

Enums

NetworkQuality
Quality tiers of network connectivity.