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

container_tab_indicator कवर
पैकेज विवरणv0.3.0

container_tab_indicator

आपने सुविधाजनक Container-जैसे गुणों का उपयोग करके अपना खुद का टैब सूचक बनाएं।

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

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

flutter pub add container_tab_indicator

पैकेज अवलोकन

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

ContainerTabIndicator एक Flutter पैकेज है जो विकासकर्ताओं को सुविधाजनक Container गुणों का उपयोग करके कस्टम टैब इंडिकेटर बनाने की अनुमति देता है, जैसे कि रंग, सीमा, पैडिंग और मार्जिन। यह डिफ़ॉल्ट Material या Cupertino विजेट्स पर निर्भर नहीं करते हुए टैब इंडिकेटर डिज़ाइन करने का एक लचीला और स्पष्ट तरीका प्रदान करता है। अद्वितीय दृश्य शैलियों या प्लेटफॉर्म के बीच एक समान ब्रांडिंग की आवश्यकता वाले ऐप्स के लिए आदर्श है, यह सभी प्रमुख Flutter प्लेटफॉर्मों को समर्थन देता है, जिनमें Android, iOS, Web, macOS, Windows और Linux शामिल हैं।

उपयोग

  • कस्टम टैब UI
  • ब्रांडिंग स्थिरता
  • क्रॉस-प्लेटफॉर्म टैब डिज़ाइन
  • गैर-सामग्री टैब संकेतक
  • डायनामिक सूचक शैली

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

  • कंटेनर जैसा स्टाइलिंग
  • प्लेटफॉर्म अनुकूल
  • आसान एकीकरण
  • लचीला लेआउट नियंत्रण
  • एनिमेशन का समर्थन करता है
  • न्यूनतम बॉयलरप्लेट

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

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

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

  • टैब इंडिकेटर उपयोग के लिए सीमित
  • कोई बिल्ट-इन एनीमेशन सपोर्ट नहीं
  • हाथ से स्थिति निर्धारित करने की आवश्यकता है
  • जटिल टैब लेआउट के लिए उपयुक्त नहीं
  • मुख्य TabBar संरचना पर निर्भर करता है

मूल README

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

ContainerTabIndicator

pub package

Add customized ContainerTabIndicator as an indicator for your TabBar. You can manipulate width, height, color, radius, border and positioning within Tab.

class ContainerTabIndicator extends Decoration {
  final double width;
  final double widthFraction;
  final double height;
  final double heightFraction;
  final EdgeInsetsGeometry padding;
  final Color color;
  final BorderRadius radius;
  final double borderWidth;
  final Color borderColor;
  ...
}

Example

The full example code can be found here.

import 'package:container_tab_indicator/container_tab_indicator.dart';

...

TabBar(
  tabs: [
    Text('First', style: TextStyle(color: Colors.black)),
    Text('Second', style: TextStyle(color: Colors.black)),
  ],
  indicator: ContainerTabIndicator(
    width: 16,
    height: 16,
    radius: BorderRadius.circular(8.0),
    padding: const EdgeInsets.only(left: 36),
    borderWidth: 2.0,
    borderColor: Colors.black,
  ),
),

example

Contributing

This package is still in early stages. To see the upcoming features, check the Issue board. If you notice any bugs not present in issues, please file a new issue. If you are willing to fix or enhance things yourself, you are very welcome to make a pull request.

श्रेणियाँ

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

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