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

पैकेज विवरणv1.0.7

dyn_mouse_scroll

सभी प्लेटफॉर्मों पर माउस के साथ चिकनी स्क्रॉलिंग की अनुमति देने वाले स्क्रॉलेबल विजेट्स के लिए एक वрапर।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
749
लाइक
42
Pub अंक
145

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

flutter pub add dyn_mouse_scroll

पैकेज अवलोकन

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

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

उपयोग

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

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

  • क्रॉस-प्लेटफॉर्म माउस स्क्रॉलिंग समर्थन
  • मौजूदा स्क्रॉल करने योग्य विजेट्स के साथ निरंतर एकीकरण
  • चिकन और प्रतिक्रियाशील स्क्रॉल प्रदर्शन
  • आवश्यक न्यूनतम सेटिंग
  • ListView, GridView और अन्य स्क्रॉल करने योग्य के साथ काम करता है

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

  • क्रॉस-प्लेटफॉर्म ऐप विकसित करने वाले डेवलपर्स
  • डेस्कटॉप और वेब उपयोगकर्ताओं के लिए ऐप्स
  • लंबी सूचियों या जटिल स्क्रॉल करने योग्य सामग्री वाले UI
  • उपकरणों के माध्यम से एकसमान UX प्राथमिकता वाली टीमें

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

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

मूल README

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

Dynamic Mouse Scroll

A wrapper for scrollable widgets that enables smooth scrolling with a mouse on all platforms.

First gif: Scrolling slowly.
Second gif: Scrolling quickly (flick scroll).
Third gif: Mobile drag scroll detected, physics change.

Features

  • Animate smooth scroll based on speed of user's scroll.
  • Uses universal_io to detect if platform is mobile or desktop.
  • Automatically detect if the wrong ScrollPhysics is being used and update using provider.
  • Adjust the duration of your scroll events.
  • Choose what mobile physics you would like to use.

Basic Usage

DynMouseScroll(
  builder: (context, controller, physics) => ListView(
    controller: controller,
    physics: physics,
    children: ...
    )
)

Problem:

Flutter does not animate smooth scrolls for pointers, causing choppy experiences for the end user. One package, web_smooth_scroll, attempts to fix this problem by disabling default scrolling entirely (mobile can't drag now) and listening for pointer events to animate the scroll controller that can only move at one speed.

Solution:

To allow mobile default scrolling to still be accessible I detect the user's platform and automatically update if the detection was wrong. When the user scrolls, the 'futurePosition' variable is updated and the animation is started.

श्रेणियाँ

निर्भरताएँ

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

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

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