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

floodfill_image कवर
पैकेज विवरणv0.0.8

floodfill_image

प्रदान किए गए छवि पर पेंट बकेट कार्यक्षमता का उपयोग करने वाला फ्लटर विजेट।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
99
लाइक
71
Pub अंक
140

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

flutter pub add floodfill_image

पैकेज अवलोकन

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

floodfill_image पैकेज एक फ्लटर विजेट प्रदान करता है जो छवियों पर पेंट बकेट कार्यक्षमता की अनुमति देता है, जिससे उपयोगकर्ता चयनित रंग से लगातार क्षेत्रों को भर सकते हैं। यह ऐसे इंटरैक्टिव ड्राइंग और संपादन एप्लिकेशन के लिए आदर्श है जहां उपयोगकर्ताओं को परिभाषित सीमाओं के भीतर रंग भरने की आवश्यकता होती है। यह पैकेज एंड्रॉइड, आईओएस, वेब, मैकओएस, विंडोज और लिनक्स जैसे कई प्लेटफॉर्म को समर्थन देता है, जिससे व्यापक संगतता सुनिश्चित होती है। यह मौजूदा फ्लटर एप्लिकेशन में आसानी से एकीकृत होता है और छवि विजेट पर फ्लड फिल ऑपरेशन के लिए एक सरल API प्रदान करता है।

उपयोग

  • इंटरैक्टिव इमेज कलरिंग ऐप्स
  • डिजिटल चित्रकला उपकरण
  • छवि संपादन विशेषताएँ
  • शैक्षिक ड्राइंग एप्लिकेशन्स
  • ग्राफिक्स में उपयोगकर्ता-निर्देशित रंग भरना

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

  • पेंट बकेट फिल कार्यक्षमता
  • क्रॉस-प्लेटफ़ॉर्म समर्थन
  • Image विजेट्स के साथ सरल एकीकरण
  • रियल-टाइम फिल अपडेट्स
  • विभिन्न छवि स्रोतों का समर्थन करता है

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

  • ड्रॉइंग टूल्स बनाने वाले ऐप विकासकर्ता
  • शैक्षिक सॉफ्टवेयर निर्माता
  • Flutter का उपयोग करने वाले डिजिटल कलाकार
  • इंटरैक्टिव इमेज मैनिपुलेशन की आवश्यकता वाले ऐप्स
  • छवियों में त्वरित रंग भरने की आवश्यकता वाले उपयोगकर्ता

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

  • बड़े या जटिल छवियों के साथ प्रदर्शन में भिन्नता हो सकती है
  • पिक्सेल-आधारित भरने तक सीमित, उन्नत मास्किंग के बिना
  • सटीकता के लिए स्पर्श इनपुट का सावधानीपूर्वक निपटान आवश्यक है
  • उच्च रिज़ॉल्यूशन छवियों के लिए अनुकूलन की आवश्यकता हो सकती है
  • वेक्टर आधारित छवि संपादन के लिए उपयुक्त नहीं

मूल README

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

Flood Fill Image

Version GitHub license Support

Overview

Flutter widget that can use paint bucket functionality on the provided image using Queue-Linear Flood Fill Algorithm by J. Dunlap. For more info check out my blog : Flood Fill in Flutter

Kindly like:+1: the package at pub dev or star:star: the repo in github if you find this library useful. :wink:

demo dog gif

Usage

FloodFillImage(
    imageProvider: AssetImage("assets/dog.jpg"),
    fillColor: Colors.amber,
    avoidColor: [Colors.transparent, Colors.black],
)

Parameters

Name Type Description
imageProvider ImageProvider The image to display via ImageProvider.
You can use AssetImage or NetworkImage.
fillColor Color Color use for filling the area.
isFillActive bool Set false if you want to disable on touch fill function.
Default value is true.
avoidColor List<Color> List of color that determines to which Color is/are needed to be avoided upon touch.
Note: Nearest color shade is applied.
tolerance int Set fill value tolerance that ranges from 0 to 100.
Default value is 8.
width int Width of the image. Parent widget width will be prioritize if it's provided and less than the image width.
height int Height of the image. Parent widget height will be prioritize if it's provided and less than the image height.
alignment AlignmentGeometry Alignment of the image.
loadingWidget Widget Widget to show while the image is being processed on initialization.
It uses CircularProgressIndicator by default.
onFloodFillStart Function(Offset position,Image image) Callback function that returns the touch position and an Image from dart:ui when flood fill starts.
Note: Touch coordinate is relative to the image dimension.
onFloodFillEnd Function(Image image) Callback function that returns an Image from dart:ui when flood fill ended.

Coffee

Buy Me A Coffee

License

MIT License, see the LICENSE.md file for details.

श्रेणियाँ

निर्भरताएँ

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

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

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

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