shadcn_flutter icon indicating copy to clipboard operation
shadcn_flutter copied to clipboard

feat: Add global enableFeedback configuration to ThemeData

Open lschaupp opened this issue 2 months ago • 1 comments

  • 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.

lschaupp avatar Oct 17 '25 19:10 lschaupp

I suspect there is some kind of different dart formatting here? The pull-request changes contains unnecesarry large diffs

sunarya-thito avatar Oct 18 '25 02:10 sunarya-thito