shadcn_flutter
shadcn_flutter copied to clipboard
feat: Add global enableFeedback configuration to ThemeData
- Add enableFeedback property to ThemeData for app-wide control
- Update Button widget to respect theme setting
- Add enableFeedback parameter to NavigationButton
- Fixes audio ducking on iOS during music playback
This change allows users to globally control tap sounds/haptic feedback through the theme, which is particularly useful for music/audio apps where iOS audio ducking creates a poor UX.
The implementation is backwards compatible - when enableFeedback is null (default), the existing platform-specific behavior is preserved.
I suspect there is some kind of different dart formatting here? The pull-request changes contains unnecesarry large diffs