s_maintenance_button 2.0.0
s_maintenance_button: ^2.0.0 copied to clipboard
A Flutter widget that provides a visual maintenance mode indicator button with animated glow effect. Only visible in debug/profile modes.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
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 - 2026-01-11 #
Added #
- Initial release of
s_maintenance_button SMaintenanceButtonwidget with animated glow effect for maintenance mode indicationisOnMaintenanceproperty to toggle maintenance state with visual feedbackactiveColorproperty to customize the glow and button color when maintenance is activenonActiveColorproperty to customize the icon color when maintenance is inactiveonTapcallback for handling button interactions- Automatic visibility control - only visible in debug and profile modes
- Animated pulsing glow effect when maintenance mode is active
- Interactive example app with playground to test all features
- Comprehensive test suite
Features #
- Debug-only visibility: Widget renders as
SizedBox.shrink()in release mode - Animated glow effect: Uses
Glow2widget with smooth pulsing animation - Customizable colors: Both active and inactive states can be customized
- Tap handling: Optional callback for toggle or custom actions