output_route_selector 2.1.1
output_route_selector: ^2.1.1 copied to clipboard
A Flutter plugin to select audio output routes (speaker, receiver, bluetooth, wired headset) on iOS and Android.
2.1.1 - 2026-01-20 #
Fixed #
- Android: Events now report the actual device state after switch attempt, not the requested state. This fixes the issue where switching to receiver while wired headphones are connected would send a "receiver" event even though the system couldn't switch (it would stay on wiredHeadset).
2.1.0 - 2026-01-20 #
Added #
- Auto-sizing: Widget automatically takes the size of its child (no need to specify width/height)
- Initial audio state: Sends current audio route immediately when stream is subscribed
- Live dialog updates: Android dialog updates in real-time when devices connect/disconnect
- Theme support: Android dialog adapts to Light/Dark mode
AudioDeviceType.airpods: New device type for AirPods (detected by name)- Auto-dismiss: Android dialog closes when widget is disposed (e.g., screen popped)
Changed #
- Simplified API: Only
childparameter required, size is automatic - Improved Android dialog positioning and styling
Fixed #
- Android: Dialog now updates when Bluetooth devices connect/disconnect while open
- Android: Correct audio route reported after device disconnection
- Android: Dialog closes properly when navigating away from screen