flutter_mmcalendar library

Myanmar calendar library for flutter application with many utility methods and calculations.

Classes

Astro
Astro model representing astrological information of a day.
AstroCalculation
Pure calculation algorithms for Myanmar astrology.
AstroTranslator
Translator for Astro information to localized strings.
CalendarConstants
Era
GlobalCalendarConfig
Global reactive configuration singleton
HolidaysCalculation
Holiday Calculation
LanguageCatalog
MmCalendar
Core API for Myanmar Calendar.
MmCalendarConfig
Configuration for Myanmar Calendar.
MoonPainter
A custom painter that draws the moon phase for a given DateTime.
MoonPhaseCalculation
Utility class for calculating moon phase angles.
MoonPhaseWidget
A widget that displays the moon phase for a given DateTime.
MyanmarDate
Represents a Myanmar date and time.
MyanmarDateCalculation
Core conversion logic for Myanmar dates.
MyanmarDateFormat
MyanmarMonths
Represents the Myanmar months for a specific Myanmar year.
MyanmarThingyan
Represents a Myanmar Thingyan day.
Thingyan
Represents the full Thingyan period in Myanmar calendar.
WesternDate
Represents a Western (Gregorian) date and time.
WesternDateCalculation
Converting logic for WesternDate.

Enums

AstroEvent
CalendarType
Calendar types English | Gregorian | Julian
Language
Supported languages for Myanmar Calendar.
LanguageCode

Extensions

AstroExtension on Astro
CalendarTypeX on CalendarType
LanguageCodeX on LanguageCode
Reverse mapping: LanguageCode → Language
LanguageX on Language
Forward mapping: Language → LanguageCode
MyanmarDateExtension on MyanmarDate
Utility extension for MyanmarDate. Uses global config for language and calendar settings.

Constants

emaList → const List<String>
eraList → const List<Era>
ghCNY → const List<int>
Chinese new year ref
ghDiwali → const List<int>
Diwali
ghEid → const List<int>
Eid
ghEid2 → const List<int>
Eid 2
langEngMap → const Map<String, String>
Map english to english.
langKarenMap → const Map<String, String>
Map english to Karen.
langMonMap → const Map<String, String>
Map english to mon.
langMyanmarUnicode → const Map<String, String>
Map english to myanmar.
langMyanmarZawgyi → const Map<String, String>
Map english to zawgyi.
langTaiMap → const Map<String, String>
Map english to tai.
mma → const List<String>
msa → const List<String>
wda → const List<String>

Functions

convertNumberToLanguage(double number) String
Convert a number to a string according to the current global language setting.
tr(String key, Map<String, String> langMap) String
Translation helper with fallback to English