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

dotted_border कवर
पैकेज विवरणv3.1.0

dotted_border

कोई भी विजेट के चारों ओर एक डॉटेड बॉर्डर जोड़ने में उपयोगकर्ता को आसानी से मदद करने वाला फ्लैटर पैकेज।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
9.2 लाख
लाइक
1.7 हज़ार
Pub अंक
160

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

flutter pub add dotted_border

पैकेज अवलोकन

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

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

उपयोग

  • इनपुट फ़ील्ड में डॉटेड आउटलाइन जोड़ना
  • स्टाइल्ड कंटेनर सीमा बनाना
  • इंटरैक्टिव बटन हाइलाइट्स का डिज़ाइन करना
  • फॉर्म तत्व दृश्य प्रतिक्रिया को बढ़ाना
  • डैश्ड बॉर्डर के साथ कस्टम UI कंपोनेंट्स बनाना

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

  • कस्टमाइज़ की गई बिंदु आकार और अंतराल
  • बहुत तरफ के समर्थन
  • मौजूदा विजेट्स के साथ आसान एकीकरण
  • क्रॉस-प्लेटफॉर्म संगतता
  • लचीले रंग और स्ट्रोक चौड़ाई सेटिंग्स

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

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

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

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

मूल README

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

Dotted Border

pub package

A flutter package to easily add dotted borders around widgets.

Installing

To use this package, add dotted_border as a dependency in your pubspec.yaml file.

Usage

Wrap DottedBorder widget around the child widget

DottedBorder(
  child: Text(
    'Rectangular Border',
    style: TextStyle(
      fontWeight: FontWeight.bold,
    ),
  ),
)
BorderTypes

This package supports the following border options

  • CustomPath
  • RoundedRect
  • Rect
  • Circular
  • Oval
Example
DottedBorder(
  options: RectDottedBorderOptions(
    dashPattern: [10, 5],
    strokeWidth: 2,
    padding: EdgeInsets.all(16),
  ),
  child: Text(
    'Rectangular Border',
    style: TextStyle(
      fontWeight: FontWeight.bold,
    ),
  ),
)
Dash Pattern

You can also specify the Dash Sequence by passing in an Array of Doubles

Example
RectDottedBorderOptions(
  dashPattern: [10, 5],
  strokeWidth: 2,
  padding: EdgeInsets.all(16),
)

The above code block will render a dashed border with the following pattern:

  • 10 pixel wide dash
  • 5 pixel wide space
Custom Path Border

You can also specify a customPath property and it will draw it for you using the provided dash pattern.

Example
DottedBorder(
  options: CustomPathDottedBorderOptions(
    padding: const EdgeInsets.all(8),
    color: Colors.purple,
    strokeWidth: 2,
    dashPattern: [10, 5],
    customPath: (size) => Path()
      ..moveTo(0, size.height)
      ..relativeLineTo(size.width, 0),
  ),
  child: const Text(
    'Custom Path Border',
    style: TextStyle(
      color: Colors.purple,
      fontWeight: FontWeight.bold,
    ),
  ),
)
Output

Flutter dotted border image

Credits

श्रेणियाँ

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

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

रैंकिंग