kill_switch_flutter 1.2.0
kill_switch_flutter: ^1.2.0 copied to clipboard
A Flutter Package That Provides A Kill Switch Functionality For Apps Using Firebase Firestore
1.2.0 #
β¨ Animation Options #
- Smooth Transitions: Added
AnimatedKillSwitchDialog
with customizable entrance and exit animations - Animation Types: Support for fade, scale, slide, bounce, and elastic animation types
- Custom Curves: Configurable animation curves and durations through
KillSwitchTheme
- Loading Animations: New
LoadingAnimationWidget
with spinner, pulse, bounce, and wave animations - Particle Effects: Interactive particle system with
ParticleEffectWidget
for micro-interactions - Performance Optimized: Optional animations that can be disabled for better performance
- Theme Integration: Animation properties fully integrated into the theming system
π§ Animation API #
- Animation Properties: Added
animationDuration
,entranceCurve
,exitCurve
toKillSwitchTheme
- Animation Controls:
enableAnimations
,loadingAnimationDuration
,enableParticleEffects
options - Custom Routes: New
AnimatedDialogRoute
for smooth dialog transitions - Backward Compatibility: Animations are enabled by default but can be disabled for legacy behavior
- Smart Fallbacks: Automatically falls back to regular dialogs when animations are disabled
π¨ Visual Enhancements #
- Enhanced Loading States: Replaced basic loading indicators with themed animation widgets
- Particle Customization: Configurable particle colors, count, and animation patterns
- Animation Types Enum: Type-safe animation selection with
AnimationType
enum - Loading Types: Multiple loading animation styles via
LoadingAnimationType
enum
1.1.0 #
π¨ Rich Content Support #
- HTML Content: Support for HTML tags (bold, italic, links) in kill switch messages
- Image Support: Display images from URLs in kill switch dialogs
- Video & GIF Support: Embed videos and animated GIFs in messages
- Interactive Forms: Add buttons, input fields, checkboxes, and dropdowns to dialogs
- Rich Content Widgets: New
RichContentWidget
,MediaContentWidget
, andInteractiveFormsWidget
- Enhanced Theming: Extended
KillSwitchTheme
with rich content styling properties - Link Handling: Automatic URL detection and clickable links with
url_launcher
integration - Form Actions: Callback system for handling interactive form submissions
π§ API Enhancements #
- Rich Content Parameters: Added
enableRichContent
andonFormAction
toKillSwitchDialog
- Theme Extensions: New styling properties for links, inputs, media, and interactive elements
- Content Detection: Automatic detection of HTML, images, videos, and interactive content
- Backward Compatibility: All rich content features are optional and maintain existing API
π± Example App Updates #
- Rich Content Demo: New demo screen showcasing all rich content features
- Interactive Examples: Live examples of HTML, images, videos, and forms
- Theme Integration: Rich content styling demonstration with different themes
1.0.1 #
π¨ Custom Themes & UI Enhancements #
- Custom Theme Support: Added comprehensive theming system with
KillSwitchTheme
class - Dark Mode Support: Automatic system theme detection with
KillSwitchTheme.auto()
- Custom Color Schemes: Full control over colors, typography, and visual styling
- Theme Presets: Built-in light and dark theme presets with
KillSwitchTheme.light()
andKillSwitchTheme.dark()
- Customizable Messages: Support for custom titles, messages, and button text in all dialogs
- Enhanced Dialogs: Both
KillSwitchDialog
andConfirmationDialog
now support theming - Flexible Typography: Custom text styles for titles, body text, and buttons
- Border & Shadow Control: Configurable borders, shadows, and corner radius
- Icon Customization: Adjustable icon sizes and colors
π§ API Improvements #
- Theme Integration: All widgets (
KillSwitchWrapper
,FlutterKillSwitch
) now accept theme parameters - Backward Compatibility: All new features are optional and maintain existing API compatibility
- Auto Theme Detection: Automatically adapts to system light/dark mode when no theme is specified
- Comprehensive Theming: Over 20 customizable properties for complete visual control
π Enhanced Documentation #
- Theme Usage Examples: Added comprehensive theming examples and documentation
- Migration Guide: Clear instructions for upgrading from previous versions
- API Reference: Complete documentation for all new theming properties
1.0.0 #
π Stable Release #
- Production Ready: First stable release with comprehensive testing and documentation
- Security Enhanced: Removed sensitive Firebase credentials from example app
- Modern Flutter Support: Updated to use PopScope instead of deprecated WillPopScope
- Complete Package: Full-featured kill switch solution ready for production use
π§ Final Improvements #
- Firebase Security: Replaced real API keys with placeholders in example app
- Deprecation Fixes: Updated to PopScope for Flutter compatibility
- Example App Polish: Improved text formatting and spacing consistency
- Documentation Complete: Comprehensive README and API documentation
π¦ What's Included #
- Kill Switch Core: Robust Firebase Firestore-based kill switch functionality
- Admin Interface: Professional dark-themed admin panel for kill switch control
- Real-time Sync: Instant dialog show/hide across all devices without restart
- Complete Example: Full demo app showing proper implementation
- Security Features: Confirmation system and secure Firebase integration
- Cross-Platform: Works seamlessly on iOS and Android
0.0.3 #
π New Features #
- Instant Dialog Management: Dialogs now appear and disappear instantly without requiring app restart
- Comprehensive API Documentation: Added Flutter-style documentation comments to all public widgets
- Complete Example App: Added a full demo app showing proper implementation with KillSwitchWrapper
- Enhanced Navigation: Example app includes navigation to admin panel for complete user flow demonstration
π§ Improvements #
- Confirmation-First Logic: Kill switch only updates Firebase database after user confirms, preventing premature activation
- Enhanced UI Design: Improved spacing, typography, and layout with Spacer widgets for better visual balance
- Debug-Friendly Logging: Replaced SnackBar notifications with debugPrint statements for cleaner UI
- Better State Management: Improved real-time dialog showing/hiding logic
π Bug Fixes #
- Real-time Dialog Management: Fixed race conditions that prevented instant dialog hiding
- Dialog State Tracking: Improved
_showingDialog
state management for better dialog lifecycle control - Navigation Safety: Added proper navigation checks before popping dialogs to prevent errors
π± Example App Enhancements #
- Demo Screen: Added MainDemoScreen wrapped with KillSwitchWrapper to demonstrate functionality
- Admin Panel Access: Added button to navigate to FlutterKillSwitch admin interface
- Dark Theme: Consistent dark theme matching the package design language
- User Instructions: Clear instructions for testing the kill switch functionality
π Documentation Updates #
- API Documentation: Added comprehensive documentation for FlutterKillSwitch and KillSwitchWrapper widgets
- Usage Examples: Updated README with improved examples and real-world implementation guide
- Feature Highlights: Added new features section highlighting instant dialog management
- Running Instructions: Added clear instructions for running the example app
0.0.1 #
π Initial Release #
- Kill Switch Functionality: Core kill switch implementation with Firebase Firestore integration
- Admin Interface: FlutterKillSwitch widget with dark theme design and Cupertino switch
- Confirmation System: Custom keyboard confirmation dialog with "IWANNAENABLE" requirement
- App Blocking: KillSwitchWrapper that shows non-dismissible dialog when kill switch is active
- Real-time Monitoring: Live Firebase Firestore listener for instant state changes
- Cross-Platform Support: Works on both iOS and Android
- Security Features: Obscure Firestore collection paths and confirmation requirements
- Firebase Service: Centralized service for all Firestore operations
- Professional UI: Clean, modern design with red accent colors for warning states