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

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

flextras

अतिरिक्त कार्यक्षमता वाले Flex विजेट (Columns और Rows) का संग्रह।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
9.1 हज़ार
लाइक
143
Pub अंक
150

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

flutter pub add flextras

पैकेज अवलोकन

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

Flextras एक Flutter पैकेज है जो मानक Column और Row विजेट की क्षमता को अतिरिक्त सुविधाओं के साथ बढ़ाता है, जिससे अधिक लचीले और शक्तिशाली लेआउट प्रबंधन संभव होता है। इसके द्वारा अनुकूलन, अंतराल और प्रतिक्रियाशील व्यवहार के लिए बेहतर नियंत्रण मिलता है, जिससे जटिल, अनुकूल उपयोगकर्ता इंटरफेस बनाना आसान हो जाता है। आंतरिक Flex विजेट से अधिक कस्टमाइजेशन चाहने वाले डेवलपर्स के लिए डिज़ाइन किया गया, Flextras मौजूदा Flutter प्रोजेक्ट में बिना किसी दिक्कत के एकीकृत हो सकता है। यह पैकेज सभी प्रमुख प्लेटफॉर्म, जैसे मोबाइल, वेब और डेस्कटॉप का समर्थन करता है, जिससे उपकरणों के बीच संगत व्यवहार सुनिश्चित होता है।

उपयोग

  • प्रतिक्रियाशील लेआउट बनाना
  • गतिशील स्पेसिंग के साथ जटिल UI बनाना
  • संरेखण अचूकता में सुधार करना
  • बहुत स्क्रीन आकारों के लिए अनुकूलित इंटरफ़ेस डिज़ाइन करना
  • पुनरावृत्ति लेआउट पैटर्न को सरल बनाना

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

  • विस्तारित संरेखण विकल्प
  • डायनामिक स्पेसिंग नियंत्रण
  • प्रतिक्रियाशील लेआउट सहायक
  • क्रॉस-प्लेटफॉर्म सुसंगतता
  • मौजूदा Flutter कोड के साथ आसान एकीकरण

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

  • जटिल लेआउट बनाने वाले Flutter विकासकर्ता
  • प्लेटफॉर्म के बीच UI सुसंगतता पर ध्यान केंद्रित करने वाली टीमें
  • विजेट व्यवस्था पर सूक्ष्म नियंत्रण की आवश्यकता वाले प्रोजेक्ट

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

  • Flutter के लेआउट सिस्टम के साथ परिचित होना आवश्यक है
  • सरल लेआउट के लिए अतिरिक्त ओवरहेड जोड़ सकता है
  • उन प्रोजेक्ट्स के लिए सबसे उपयुक्त जिनमें उन्नत लेआउट की आवश्यकता हो

मूल README

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

tests

flextras

A collection of Columns and Rows with extra functionality:

  • PaddedColumn / PaddedRow - Wraps a column/row in padding
  • SeparatedColumn / SeparatedRow - Insert any widget between each child
  • ExpandedScrollingColumn / ExpandedScrollingRow - Allow a column to hold Expandable children, while still scrolling if it needs to.

🔨 Installation

dependencies:
  flextras: ^0.0.1
⚙ Import
import 'package:flextras/flextras.dart';

🕹️ Usage

PaddedContainer and PaddedRow

A simple combination of Padding and Column/Row, as is often needed. Very simple, but saves a few lines in your tree:

return PaddedColumn(
    padding: EdgeInsets.all(20),
    children: [ ... ]
)
SeparatedColumn and SeparatedRow

Often you want to place a divider between the elements of a Column or Row. Use the separatorBuilder method to do so easily:

return SeparatedColumn(
    // 10px gap between each element
    separatorBuilder: () => SizedBox(height: 10),
    children: [ ... ]
)
ExpandedScrollingColumn and ExpandedScrollingRow

Solves a common use case where you want to have some expanding content, that can also begin scrolling if it runs out of room.

Normally, if you do something like this it will throw a layout error:

SingleChildScrollView(
    child: Column(
        children: [
            Expanded(child: ...) // This tries to expand to infinity :(
        ]
    )
)

ExpandedScrollingColumn fixes this by using the content's natural height, or the height of the parent view, whichever is greater.

// This will expand vertically to fill the parent, but begin scrolling when it has to
ExpandedScrollingColumn(
    children: [
        Expanded(child: Container(height: 400)),
    ]
)

🐞 Bugs/Requests

If you encounter any problems please open an issue. If you feel the library is missing a feature, please raise a ticket on Github and we'll look into it. Pull request are welcome.

📃 License

MIT License

श्रेणियाँ

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

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