s_disabled 2.0.0
s_disabled: ^2.0.0 copied to clipboard
A customizable Flutter widget for disabling and visually indicating disabled state of child widgets with optional opacity changes and tap detection.
2.0.0 #
- package no longer holds the source code for it, but exports/exposes the
s_packagespackage instead, which will hold this package's latest source code. - The only future changes to this package will be made via
s_packagespackage dependency upgrades, in order to bring the new fixes or changes to this package - dependent on
s_packages: ^1.1.2
1.0.0 #
- Initial Release: Stable release of s_disabled package
- SDisabled Widget: A customizable Flutter widget for disabling child widgets with smooth animations
- Features:
- Animated opacity changes when disabled (customizable, can be disabled)
- Configurable opacity level when disabled (default 0.3)
- Tap detection on disabled widgets with optional callback
- Smooth transitions using AnimatedOpacity (300ms duration)
- AbsorbPointer to prevent interaction with disabled children
- Full state management support
- Parameters:
child: The widget to be disabled/enabledisDisabled: Boolean flag to control disabled statedisableOpacityChange: Prevent visual opacity indication when disabledopacityWhenDisabled: Custom opacity value for disabled stateonTappedWhenDisabled: Callback function for tap events on disabled widget
- Documentation: Complete README with basic and advanced examples
- Testing: Comprehensive widget tests covering all functionality
- Example App: Full Flutter example demonstrating usage patterns