native_toast_pro 1.0.0
native_toast_pro: ^1.0.0 copied to clipboard
A production-ready Flutter plugin providing unified native toast experience across Android and iOS platforms with clean API and robust error handling.
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.
1.0.0 - 2024-04-26 #
Added #
- Initial release of Native Toast Pro
- Android native Toast support using real Android Toast API
- iOS native UIView toast support with custom implementation
- Clean service-based architecture with proper separation of concerns
- MethodChannel implementation for cross-platform communication
- Comprehensive error handling with PlatformException wrapping
- Built-in rate limiting (500ms) to prevent toast spam
- Input validation and null safety support
- Platform support checking functionality
- Complete example app demonstrating all features
- Comprehensive unit and integration tests
- Production-ready documentation and API reference
Features #
- Android: Real native Toast API usage with applicationContext to prevent memory leaks
- iOS: Custom UIView-based toast with fade animations and auto-dismiss
- Cross-Platform: Identical API across both platforms
- Error Handling: ArgumentError for invalid input, PlatformException for platform errors
- Rate Limiting: Silent handling of spam calls with configurable bypass option
- Testing: Full test coverage with mock platforms and integration tests
Technical Details #
- Flutter embedding v2 support
- Method channel:
native.toast.channel - Android package:
com.example.native_toast_pro - iOS class:
NativeToastProPlugin - Minimum Flutter SDK: ^3.3.0
- Minimum Dart SDK: ^3.11.5
Documentation #
- Comprehensive README with installation and usage instructions
- API reference with all methods and parameters
- Error handling guide and examples
- Architecture documentation
- Example app with multiple use cases