flutter_khmer_chankitec 0.0.5
flutter_khmer_chankitec: ^0.0.5 copied to clipboard
A Flutter plugin for Khmer lunar calendar (Chhankitek/ចន្ទគតិ) calculations. Convert Gregorian dates to Khmer lunar dates with full support for Buddhist calendar features including Sila days detection.
Changelog #
0.0.5 - 2026-01-08 #
Added #
- Ported robust astronomical calculation logic from
momentkhfor higher precision. - Precise Moha Songkran (Khmer New Year) and Lerng Sak transition logic.
- Accurate Buddhist Era (BE) transition at Visakha Bochea.
- Enhanced animal zodiac and era (Sak) switching logic.
- Comprehensive unit tests for edge cases and calendar transitions.
Changed #
- Internal logic refactored to use Julian Day Number (JDN) for better stability and range.
- Updated README with proper credits and updated API information.
0.0.4 - 2026-01-05 #
Added #
- Added
shortLunarDaygetter with space formatting (e.g., "១ កើត", "១៥ រោច") - Added
shortLunarDayCompactgetter without space formatting (e.g., "១កើត", "១៥រោច") - Added
compactproperty toLunarDayclass for compact format
Changed #
- Updated default
toString()format to include space between number and phase - Improved readability of lunar day display
- Updated example app to demonstrate both formatting options
0.0.3 - 2026-01-05 #
Added #
- Exported
KhmerNumberUtilsclass for public use - Added comprehensive example app demonstrating all features
- Added
toKhmerNumber()function for converting integers to Khmer numerals - Added
getDayOfWeekInKhmer()function - Added
getSolarMonthKh()function - Enhanced README with complete API documentation
- Added publishing guide (PUBLISHING_GUIDE.md)
Changed #
- Updated example app with detailed feature demonstrations
- Improved documentation with all available functions and constants
0.0.2 - 2026-01-04 #
Changed #
- Shortened and cleaned up README
- Moved donation section to top of README
- Added pub.dev badge
0.0.1 - 2026-01-04 #
Added #
- Initial release of Flutter Khmer Chankitec plugin
- Khmer lunar calendar (Chhankitek/ចន្ទគតិ) calculations
- Convert Gregorian dates to Khmer lunar dates
- Get current date in Khmer lunar calendar
- Support for day of week in Khmer
- Lunar day information (កើត/រោច phases)
- Lunar month names in Khmer
- Zodiac animal year (រាសី)
- Era names (ស័ក)
- Buddhist Era year calculation
- Khmer number formatting
- Sila day detection (ថ្ងៃសីល - Buddhist observance days)
- Full moon and new moon day detection
- Complete Khmer date formatting
- Pure Dart implementation - works on all Flutter platforms
- Comprehensive example app
- Unit tests with 100% pass rate