armor 1.0.0 copy "armor: ^1.0.0" to clipboard
armor: ^1.0.0 copied to clipboard

Bulletproof protection for Flutter apps. Automatically handles crashes, errors, and failures with graceful recovery.

Changelog #

All notable changes to the Armor package will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.0 - 2024-07-12 #

Added #

  • πŸŽ‰ Initial release of Armor package
  • πŸ›‘οΈ ArmorMixin for bulletproof widget protection
  • 🚫 Global error interception with ArmorInterceptor
  • πŸ“Š Error tracking and statistics with ArmorRegistry
  • πŸ”§ Core protection methods:
    • safeExecute() - Execute code safely with fallbacks
    • safeSetState() - Prevent setState after dispose errors
    • safeAsync() - Safe async operations with mounted checks
    • safeBuild() - Build widgets with automatic fallback UI
  • πŸ–ΌοΈ armorImage() - Safe image loading with error handling
  • 🌐 armorNetworkRequest() - Network calls with retry logic
  • ⏱️ armorTimer() - Managed timers with automatic cleanup
  • πŸ“‘ armorStreamListen() - Protected stream subscriptions
  • πŸ”§ armorPlatformCall() - Safe platform method channel calls
  • πŸ“ armorFileOperation() - Protected file system operations
  • ⚑ armorPerformanceOperation() - Performance monitoring wrapper
  • πŸ“ˆ Built-in statistics and monitoring
  • 🧹 Automatic resource cleanup on widget dispose
  • πŸ§ͺ Comprehensive test coverage
  • πŸ“– Complete documentation and examples
  • 🎯 Zero-configuration setup

Features #

  • Handles all major Flutter error types:
    • Null safety errors
    • setState after dispose
    • Render overflow (yellow/black stripes)
    • Image loading failures
    • Network timeouts and errors
    • Platform channel errors
    • File system errors
    • Memory leaks from undisposed resources
  • Intelligent caching system for continuity during failures
  • Performance monitoring with automatic warnings
  • Real-time error statistics and healing metrics
  • Stream-based error monitoring for analytics integration
  • Minimal performance overhead
  • Production-ready patterns and best practices

Documentation #

  • Comprehensive README with quick start guide
  • Complete API documentation
  • Real-world usage examples
  • Migration guide from manual error handling
  • Best practices and FAQ
  • Interactive example app demonstrating all features

Testing #

  • Unit tests for all core functionality
  • Widget tests for mixin behavior
  • Integration tests for error scenarios
  • Performance benchmarks
  • 100% analyzer compliance

For more information, see the README and API documentation.

53
likes
160
points
47
downloads

Publisher

verified publishercodepur.dev

Weekly Downloads

Bulletproof protection for Flutter apps. Automatically handles crashes, errors, and failures with graceful recovery.

Repository (GitHub)
View/report issues

Topics

#error-handling #crash-prevention #resilience #flutter-widgets #error-recovery

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on armor