world_holidays 2.0.1
world_holidays: ^2.0.1 copied to clipboard
A comprehensive Flutter package providing holiday information for multiple countries (2024-2026) with offline-first 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.
2.0.1 2025-01-XX #
Fixed #
- π°π· Updated KR Holidays: Added missing 2026 holidays (μΌμΌμ λ체ν΄μΌ, λ체ν΄μΌ, μ§λ°©μ κ±°, κ΄λ³΅μ λ체ν΄μΌ, κ°μ²μ λ체ν΄μΌ)
- π Data Sync: Synchronized KR holidays data with kr.json API
2.0.0 - 2025-09-12 #
Added #
- π 6 New Countries: China (CN), Vietnam (VN), Malaysia (MY), Thailand (TH), Canada (CA), Brazil (BR), Taiwan (TW)
- π Multilingual Support: English and Korean descriptions for all holidays
- π Expanded Coverage: 508 total holidays across 10 countries
- π Enhanced Data Structure: Multilingual description objects with
enandkofields - π οΈ Auto-Generation: Python script for automatic Dart code generation from JSON data
Changed #
- π Increased Scale: From 4 countries to 10 countries
- π More Holidays: From 178 to 508 total holidays
- π§ Improved API: Enhanced Holiday model with multilingual description support
- π Updated Documentation: All examples and documentation reflect new countries and features
Technical Improvements #
- π Python Automation: JSON to Dart code generation script
- π Data Consistency: Unified data structure across all countries
- π Web Interface: Updated HTML interface with new countries and multilingual support
- π Better Statistics: Real-time country and holiday counts
Data Coverage #
- π¨π³ China: 72 holidays (includes Lunar holidays and Golden Week)
- π»π³ Vietnam: 44 holidays (includes Lunar holidays and national observances)
- π²πΎ Malaysia: 44 holidays (includes multi-cultural and religious holidays)
- πΉπ Thailand: 61 holidays (includes Buddhist and royal holidays)
- π¨π¦ Canada: 33 holidays (includes federal and provincial holidays)
- π§π· Brazil: 51 holidays (includes Carnival and national observances)
- πΉπΌ Taiwan: 57 holidays (includes Lunar holidays and national observances)
1.0.0 - 2025-09-09 #
Added #
- π Initial release of World Holidays package
- π³οΈ Support for 4 countries: South Korea (KR), United States (US), Japan (JP), Germany (DE)
- π Complete holiday data for 2024-2026 (178 holidays total)
- π Offline-first approach with local fallback data
- π Optional online updates from GitHub Pages API
- β‘ Efficient caching with SharedPreferences (7-day expiry)
- π Holiday lookup and filtering capabilities
- π Comprehensive test coverage
- π Detailed documentation and examples
Features #
getHolidays()- Get holidays for specific country/yearupdateHolidays()- Update data from online sourceisHoliday()- Check if specific date is holidayisTodayHoliday()- Check if today is holidaygetNextHoliday()- Find next upcoming holidaygetSupportedCountries()- List supported countriesgetSupportedYears()- List supported years (2024-2026)clearCache()- Clear cached data
Data Coverage #
- π°π· South Korea: 48 holidays (includes Lunar holidays and substitutes)
- πΊπΈ United States: 31 holidays (Federal holidays)
- π―π΅ Japan: 54 holidays (National holidays with substitutes)
- π©πͺ Germany: 45 holidays (National and regional holidays)
Technical Details #
- Minimum Flutter version: 3.0.0
- Minimum Dart SDK: 3.0.0
- Dependencies: http, shared_preferences
- API endpoint: https://beomq.github.io/world_holidays/api
- Cache duration: 7 days
- Network timeout: 10 seconds