moon_extension 0.0.1
moon_extension: ^0.0.1 copied to clipboard
A comprehensive Flutter package providing useful extensions for strings, dates, and context utilities with Turkish phone number support.
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.
0.0.1 - 2024-12-25 #
Added #
- Initial release of Moon Extension package
- StringExtension with comprehensive string utilities:
- Email, phone, URL, and numeric validation
- HTML tag removal functionality
- Turkish phone number formatting support
- Null safety with default value handling
- Null/empty string checks
- DateTimeExtension with date and time utilities:
- Multiple date format options (date only, with time, year only)
- UTC formatting without milliseconds
- Leap year detection for integers
- ContextExtension with Flutter context utilities:
- Screen size utilities with scaling support
- Predefined padding values for consistent spacing
- Device type detection (mobile, tablet, desktop)
- Responsive design helpers
- PhoneExtension for Turkish phone number formatting:
- International format conversion
- Simple format conversion
- Support for various input formats
- Comprehensive test coverage for all extensions
- Modular test structure for better maintainability
- Example application demonstrating all features
- Complete documentation with usage examples
Technical Details #
- Built with Flutter SDK ^3.7.2
- Compatible with Flutter >=1.17.0
- Uses intl package for date formatting
- MIT License for open source usage