DIYA

DIYA

Share

12/03/2026

🚀 Khmer Lunar Chhankitek — Fast Khmer Lunar Calendar Engine in Pure Dart

I built a Khmer Lunar Calendar test application to validate the performance and flexibility of my pure Dart package: Khmer Lunar Chhankitek.

The goal was to ensure the engine works fast, lightweight, and flexible across different platforms including Flutter, CLI, and server-side Dart.

✨ Key Features:
• Khmer lunar calendar engine (day, month, year APIs)
• Khmer formatted lunar dates
• Buddhist observance helpers (Sil Day / Kor Day)
• Khmer New Year calculation
• Khmer date formatting utilities
• Pure Dart — no platform dependency

package: https://pub.dev/packages/khmer_lunar_chhankitek

30/01/2026

🚀 Dart & Flutter Tip: Password Validation Best Practice

When building Flutter forms, I often see this question:
👉 Should I use switch or if for validation?
Answer:
Use if (or rule-based validation) — not switch.

❌ Why switch is not ideal
Designed for enums & fixed states
Harder to read with multiple conditions
Rarely used for validation in real Flutter projects

🧠 Pro tip
For growing apps, use a rule-based validator to keep your code clean, scalable, and maintainable.

📱 Flutter usage

TextFormField(
validator: (v) => validatePassword(v ?? ''),
)

Clean code → Better UX → Easier maintenance
Happy coding 🚀

Read More : https://emdiya.medium.com/dart-flutter-password-validation-if-switch-or-better-c0290873410d
Join Flutter Community Cambodia : https://www.linkedin.com/groups/14584435/
hashtag hashtag hashtag hashtag hashtag hashtag hashtag

Want your business to be the top-listed Media Company in Phnom Penh?
Click here to claim your Sponsored Listing.

Category

Telephone

Address


Phnom Penh