s_disabled 1.0.0
s_disabled: ^1.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.
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