Logo Lanfrica

yarie4481/ethiopian_calendar_picker

Domain:

natural language processing

Record type:

software
Creator:
yar
Host:
A Flutter package for selecting dates using the Ethiopian calendar # Ethiopian Date Picker for Flutter A Flutter package to select dates using the **Ethiopian calendar** with **Amharic labels**. ## ✨ Features - Ethiopian calendar date picker widget - Convert between Ethiopian and Gregorian dates - Cross-platform: Android, iOS, Web - Modern and user-friendly UI ## ⚙️ Installation Add this to your `pubspec.yaml`: ```yaml dependencies: ethiopian_date_picker: path: ../ethiopian_date_picker Then run: bash Copy code flutter pub get 🚀 Usage dart Copy code import 'package:ethiopian_date_picker/ethiopian_date_picker.dart'; import 'package:flutter/material.dart'; EthiopianDate? selectedDate; ElevatedButton( onPressed: () async { final picked = await showEthiopianDatePicker(context: context); if (picked != null) { selectedDate = picked; final g = EthiopianCalendar.toGregorian(picked); print('Gregorian: ${g.toLocal()}'); } }, child: const Text('የኢትዮጵያ ቀን ምረጫ'), ); 🔄 Conversion dart Copy code EthiopianDate eDate = EthiopianDate(2016, 1, 1); DateTime gDate = EthiopianCalendar.toGregorian(eDate); EthiopianDate e2 = EthiopianCalendar.fromGregorian(gDate); 🧩 Example Run the demo app: bash Copy code cd example flutter run ```

Languages