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

पैकेज विवरणv0.5.6

keyboard_visibility

Android और iOS पर सॉफ्ट कीबोर्ड दिखाई देने की स्थिति का पता लगाने के लिए Flutter प्लगइन।

30-दिन डाउनलोड
735
लाइक
122
Pub अंक
35

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

flutter pub add keyboard_visibility

पैकेज अवलोकन

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

keyboard_visibility पैकेज एक Flutter प्लगइन है जो डेवलपर्स को Android और iOS उपकरणों पर सॉफ्ट कीबोर्ड के दृश्यता स्थिति का पता लगाने में सक्षम बनाता है। यह एप्लिकेशन को डायनामिक रूप से प्रतिक्रिया करने की अनुमति देता है—जैसे लेआउट को समायोजित करना या सामग्री को दृश्य में लाना—जब उपयोगकर्ता इनपुट की आवश्यकता होती है। यह फॉर्म या चैट इंटरफ़ेस में विशेष रूप से उपयोगी है। प्लगइन कम सेटअप के साथ प्लेटफॉर्म के बीच बिना किसी समस्या के काम करता है, जिससे यह रिस्पॉन्सिव UI के लिए आदर्श है।

उपयोग

  • फॉर्म इनपुट हैंडलिंग
  • चैट ऐप UI समायोजन
  • डायनामिक लेआउट रीसाइज़िंग
  • फोकस्ड फील्ड्स तक स्क्रॉल करें
  • प्रतिक्रियाशील उपयोगकर्ता इंटरफेस

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

  • रियल-टाइम कीबोर्ड अवस्था निर्धारण
  • क्रॉस-प्लेटफ़ॉर्म समर्थन (Android और iOS)
  • सरल इवेंट सुनने वाला API
  • न्यूनतम कॉन्फ़िगरेशन
  • FocusNode और TextEditingController के साथ काम करता है

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

  • फॉर्म-भारी एप्लिकेशन बनाने वाले डेवलपर्स
  • चैट या संदेश एप्लिकेशन
  • गतिशील कीबोर्ड-संवेदनशील लेआउट वाले UI
  • प्रतिक्रियाशील इनपुट हैंडलिंग की आवश्यकता वाले ऐप्स
  • प्लेटफॉर्म-विशिष्ट विशेषताओं का अन्वेषण कर रहे Flutter शुरुआती लोग

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

  • वेब प्लेटफॉर्म पर काम नहीं करता है
  • सही इवेंट लिसनर प्रबंधन की आवश्यकता है
  • जटिल UI संक्रमण के लिए अतिरिक्त तर्क की आवश्यकता हो सकती है
  • कीबोर्ड दृश्यता तक सीमित, आकार या एनीमेशन नहीं
  • कोई निर्मित एनीमेशन या संक्रमण नहीं है

मूल README

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

keyboard_visibility

Notification service for soft-keyboard visibility

Usage

Add the dependency to your pubspec.yaml file in the root folder of your project. Look for the 'dependencies:'-line and add the following line after this line:

keyboard_visibility: any

or

keyboard_visibility: ^[CURRENT VERSION NUMBER]

(Please note that the two spaces in the beginning of the line are important) Run 'flutter packages get' in your root folder after saving the pubspec.yaml file. For additional documentation about the pubspec.yaml file please refer to the official flutter documentation using packages

Import package:keyboard_visibility/keyboard_visibility.dart, instantiate KeyboardVisibilityNotification and use the Android and iOS notifications to get events about changes of the visibility of the soft-keyboard

The best practice to call the addNewListener function is inside the initState function as in the following example:

import 'package:keyboard_visibility/keyboard_visibility.dart';

@protected
void initState() {
  super.initState();

  KeyboardVisibilityNotification().addNewListener(
    onChange: (bool visible) {
      print(visible);
    },
  );
}

Also check out the example included with the package

Getting Started

For help getting started with Flutter, view the following online documentation.

श्रेणियाँ

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

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