smart_datetime_formatter 0.0.1
smart_datetime_formatter: ^0.0.1 copied to clipboard
A powerful DateTime formatter with enum patterns, localization, and relative time support.
📅 smart_datetime_formatter #
A powerful and developer-friendly DateTime formatter package for Flutter and Dart.
Built on top of the intl package with added features like:
✅ Enum-based date format patterns
🌍 Built-in localization (English, Bangla, Arabic)
⏱️ Relative time (5 minutes ago, গতকাল, أمس)
📆 Date range formatting (e.g. 12–14 July 2025)
🧩 Extension methods on DateTime for clean usage
📦 Pub.dev ready and production-tested
🚀 Features #
- Format dates using enums instead of memorizing string patterns
- Format custom date strings using your own pattern
- Get relative time like
just now,yesterday,৫ মিনিট আগে,دقيقة مضت - Format a date range smartly
- Localization support (English 🇬🇧, Bangla 🇧🇩, Arabic 🇸🇦)
- Easily extendable and testable
- Works seamlessly with Flutter & Dart
🛠 Installation #
Add to your pubspec.yaml:
dependencies:
smart_datetime_formatter: ^0.0.1