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

field_suggestion कवर
पैकेज विवरणv0.2.6

field_suggestion

उच्च रूप से कस्टमाइज़ करने योग्य, सरल और नियंत्रित करने योग्य सुझाव क्षेत्र बनाएं।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
643
लाइक
45
Pub अंक
160

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

flutter pub add field_suggestion

पैकेज अवलोकन

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

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

उपयोग

  • गतिशील सुझाव वाले फॉर्म इनपुट
  • पूर्वानुमानित पाठ के साथ खोज बार
  • फॉर्म में कस्टम ड्रॉपडाउन
  • उपयोगकर्ता-मित्रतापूर्ण डेटा एंट्री इंटरफेस
  • बड़े डेटासेट का रियल-टाइम फ़िल्टरिंग

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

  • अत्यधिक कस्टमाइज़ेबल सुझाव UI
  • क्रॉस-प्लेटफॉर्म संगतता
  • सरल और स्पष्ट एपीआई
  • सुझावों में कस्टम विजेट्स का समर्थन
  • निर्मित फ़िल्टरिंग और नियंत्रण तर्क
  • हल्का और कार्यक्षम

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

  • फॉर्म-भारी एप्लिकेशन बनाने वाले डेवलपर्स
  • स्थिर स्वचालित पूर्ण करने की आवश्यकता वाली टीमें
  • प्लेटफॉर्म-स्वतंत्र इनपुट कंपोनेंट्स की आवश्यकता वाले ऐप्स
  • जटिल उपयोगकर्ता इनपुट की आवश्यकता वाले प्रोजेक्ट्स

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

  • डेटा स्रोत तर्क के हस्तलिखित कार्यान्वयन की आवश्यकता है
  • सीमित निर्मित थीम या स्टाइल प्रीसेट
  • स्थिर या पूर्वानुमानित सुझाव स्रोत के लिए सबसे उपयुक्त

मूल README

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


Field Suggesion's Logo

Field Suggesion's Title Logo


Installing

Usage

In this example, we're using the FieldSuggestion.network widget to display suggestions for a username input field. We've provided an inputDecoration with a hint text, a future function that fetches the suggestions based on the user input, a textController that controls the text in the input field, a boxController that controls the visibility of the suggestion box, and a builder function that defines how the suggestions are displayed in the suggestion box.

Note that FieldSuggestion uses generics to allow for suggestions of different types. In the example above, we're using String as the type parameter for FieldSuggestion.network However, any other type can be used, depending on the type of suggestions being displayed.

FieldSuggestion<String>.network(
  inputDecoration: InputDecoration(
    hintText: 'Username', // optional
  ),
  future: (input) => future.call(input),
  textController: controller,
  boxController: boxController, // optional
  builder: (context, snapshot) {
    if (snapshot.connectionState != ConnectionState.done) {
      return Center(child: CircularProgressIndicator());
    }

    final result = snapshot.data ?? [];
    return ListView.builder(
      itemCount: result.length,
      itemBuilder: (context, index) {
        return GestureDetector(
          onTap: () {
            setState(() => controller.text = result[index]);
            boxControllerNetwork.close?.call();
          },
          child: Card(child: ListTile(title: Text(result[index]))),
        );
      },
    );
  },
)

Contributing

  • For information regarding contributions, please refer to CONTRIBUTING.md file.

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 1 आइटम

  • highlightable^1.0.5

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

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

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