Logo Lanfrica

rarksule/ethiopian_datetime_picker

Domaine:

natural language processing

Type de record:

software
Créateur:
rar
Hôte:
DateTime Picker flutter package with cupertino mode support and 4 local languages # Ethiopian (Amharic,Somali,Oromiffa,Tigrigna) Date & Time Picker for Flutter ## Overview A Ethiopian Date & Time picker inspired by Material Design's DateTime picker, built on the ethiopian_datetime library. It offers full support for the Ethiopian calendar and is highly customizable, including compatibility with Material 3. Additionally, it supports multiple languages, including Amharic,Oromiffa,Afsomali,tigrigna and custom locales, all while ensuring seamless integration with Flutter and maintaining Material Design standards. ## ️ Features - 🌟 Fully supports Ethiopian calendar - 🛠 Highly customizable - 💻 Supports Material 3 - 🌎 Multi-language support: Amharic,Oromiffa,Afsomai,Tigrigna and custom locales - 📱 Compatible with Material Design standards - Easy Documentation similar to Flutters Documentation ## ️ Getting Started To use the Ethiopian DateTime Picker, add the package to your `pubspec.yaml`: ```yaml dependencies: ethiopian_datetime_picker: ``` Then, import it in your Dart code: ```dart import 'package:ethiopian_datetime_picker/ethiopian_datetime_picker.dart'; ``` ## ️ Usage Examples ### 1. Ethiopian Date Picker ```dart ETDateTime? picked = await showETDatePicker( context: context, initialDate: ETDateTime.now(), firstDate: ETDateTime(2010), lastDate: ETDateTime(2030), initialEntryMode:DatePickerEntryMode.calendarOnly, initialDatePickerMode: DatePickerMode.year, ); var label = picked.formatFullDate(); ``` for more on [ETDateTime] check ethiopian_datetime_picker package ### 2. Ethiopian Time Picker ```dart var picked = await showETTimePicker( context: context, initialTime: TimeOfDay.fromDateTime(ETDateTime.now()), initialEntryMode: TimePickerEntryMode.input, ); if (picked != null) String label = picked.toString(); ``` ### 3. Modal Bottom Sheet with Ethiopian Cupertino Date Picker ```dart ETdateTime? pickedDate = await showModalBottomSheet ( context: context, builder: (context) { ETdateTime? tempPickedDate; return Con …