पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

day_month_picker कवर
पैकेज विवरणv1.0.3

day_month_picker

इस पैकेज के साथ आप अपने इच्छित महीने और दिन को आसानी से चुन सकते हैं! चयनकर्ता से एक सरल तारीख चयन प्रक्रिया चुनें — वर्ष की आवश्यकता नहीं है। आनंद लें!

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
103
लाइक
29
Pub अंक
150

पैकेज इंस्टॉल करें

flutter pub add day_month_picker

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक फ्लटर पैकेज जो उपयोगकर्ताओं को वर्ष का चयन किए बिना आसानी से दिन और महीना चुनने की अनुमति देता है। यह एक सरल, स्पष्ट तारीख़ चयनकर्ता इंटरफ़ेस प्रदान करता है जो जन्मदिन, वर्षगांठ या घटना आयोजन जैसे परिदृश्यों के लिए आदर्श है जहां केवल महीना और दिन महत्वपूर्ण हैं। चयनकर्ता हल्का है और Android, iOS, Web, macOS, Windows और Linux जैसे कई प्लेटफ़ॉर्मों का समर्थन करता है। सरल एकीकरण के लिए डिज़ाइन किया गया है, इससे उपयोगकर्ता अनुभव को न्यूनतम सेटअप के साथ बढ़ाया जा सकता है।

उपयोग

  • जन्मदिन चयन
  • वर्षगांठ योजना
  • घटना तिथि इनपुट
  • मासिक याद दिलाएं
  • सरल तिथि प्रविष्टि

मुख्य विशेषताएँ

  • वर्ष चयन की आवश्यकता नहीं है
  • क्रॉस-प्लेटफ़ॉर्म समर्थन
  • न्यूनतम सेटअप
  • स्मार्ट उपयोगकर्ता इंटरफेस
  • हल्का डिज़ाइन

इनके लिए उपयुक्त

  • सरल तारीख़ फॉर्म
  • उपयोगकर्ता ऑनबोर्डिंग प्रवाह
  • जन्मदिन चयनकर्ता
  • वर्ष-विशिष्ट नहीं तारीखें
  • मोबाइल और वेब ऐप्स

विचार योग्य बातें

  • वर्ष चयन शामिल नहीं है
  • दिन और महीने तक सीमित
  • पूर्ण तारीख सत्यापन के लिए उपयुक्त नहीं
  • तारीख के तर्क को हस्तक्षेप से संभालने की आवश्यकता है
  • स्थानीयकरण समर्थन का उल्लेख नहीं किया गया

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Day Month Picker or You can say Date Month picker

The DayMonthPicker widget is a customizable Flutter component that allows users to select a specific day and month from a dialog interface. It is particularly useful in forms or applications where date input is needed without year.

Features

Easy selection of months and days Customizable appearance Built-in support for existing day and month values Callback function to handle changes

Constructor

const DayMonthPicker({
  Key? key,
  this.surfaceTintColor,
  this.titleTextStyle,
  this.selectedMonthBgColor = Colors.blue,
  this.unSelectedMonthBgColor = Colors.white,
  this.selectedDayBgColor = Colors.blue,
  this.unSelectedDayBgColor = Colors.white,
  this.title = "Date Month Picker",
  this.selectedMonthTextStyle = const TextStyle(color: Colors.white, fontSize: 14),
  this.unSelectedMonthTextStyle = const TextStyle(color: Colors.black, fontSize: 14),
  this.selectedDayTextStyle = const TextStyle(color: Colors.white, fontSize: 12),
  this.unSelectedDayTextStyle = const TextStyle(color: Colors.black, fontSize: 12),
  this.child = const Padding(
    padding: EdgeInsets.all(8.0),
    child: Text("Month Picker"),
  ),
  this.cancelTextStyle = const TextStyle(color: Colors.grey, fontSize: 16),
  this.okTextStyle = const TextStyle(color: Colors.blue, fontSize: 16),
  this.existingDay,
  this.existingMonth,
  required this.onChange,
});

Parameters

  • key: An optional key to identify the widget.
  • surfaceTintColor: A color to tint the dialog surface (default is transparent).
  • titleTextStyle: Text style for the dialog title.
  • selectedMonthBgColor: Background color for the selected month (default is blue).
  • unSelectedMonthBgColor: Background color for unselected months (default is white).
  • selectedDayBgColor: Background color for the selected day (default is blue).
  • unSelectedDayBgColor: Background color for unselected days (default is white).
  • title: The title of the dialog (default is "Date Month Picker").
  • selectedMonthTextStyle: Text style for the selected month label.
  • unSelectedMonthTextStyle: Text style for unselected month labels.
  • selectedDayTextStyle: Text style for the selected day label.
  • unSelectedDayTextStyle: Text style for unselected day labels.
  • child: The widget displayed as the button to open the picker (default is a padded "Month Picker" text).
  • cancelTextStyle: Text style for the cancel button.
  • okTextStyle: Text style for the ok button.
  • existingDay: An optional string representing the already selected day.
  • existingMonth: An optional string representing the already selected month.
  • onChange: A required callback function that is triggered when the user selects a day and month.

Usage

Short and useful examples for package users.

DayMonthPicker(onChange: (DayMonth? dayMonth){
        if(dayMonth != null) {
          print("Day: ${dayMonth.day}");
          print("Month: ${dayMonth.month}");
        }
      }),

Example

@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(title: Text('Day Month Picker Example')),
    body: Center(
      child: DayMonthPicker(
        onChange: (dayMonth) {
          // Do something with the selected day and month
          print('Selected Day: ${dayMonth.day}, Month: ${dayMonth.month}');
        },
      ),
    ),
  );
}

Some UI examples

Day Month Picker Example

Day Month Picker Example image (7)

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।