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

animated_segmented_tab_control कवर
पैकेज विवरणv2.2.0

animated_segmented_tab_control

एक कस्टमाइज़ेबल सेगमेंटेड कंट्रोल जिसका उपयोग एक टैब व्यू के साथ किया जा सकता है।

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

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

flutter pub add animated_segmented_tab_control

पैकेज अवलोकन

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

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

उपयोग

  • इंटरैक्टिव टैब नेविगेशन
  • डायनामिक UI ट्रांजिशन
  • कस्टमाइज़ेबल टैब इंटरफेस
  • क्रॉस-प्लेटफॉर्म टैब नियंत्रण
  • डैशबोर्ड में उपयोगकर्ता अनुभव में सुधार
  • फॉर्म खंड स्विचिंग

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

  • चिकनी एनिमेटेड ट्रांजिशन
  • बहुत कस्टमाइज़ेबल दिखावट
  • TabView के लिए बिल्ट-इन समर्थन
  • प्लेटफॉर्म के आसपास प्रतिक्रियाशील डिज़ाइन
  • मौजूदा Flutter प्रोजेक्ट्स के साथ आसान एकीकरण
  • क्षैतिज और ऊर्ध्वाधर लेआउट दोनों का समर्थन करता है

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

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

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

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

मूल README

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

A customizable segment tab control. Can be used with or without TabView.

Made in lanars.com.

pub package

Features

The package provides an advanced segmented control widget based on the TabController.

Usage

The package contains a SegmentedTabControl widget that requires a SegmentTab list.

SegmentedTabControl(
  tabs: [
    SegmentTab(
      label: 'Home',
    ),
  ],
)

SegmentedTabControl also requires a TabController. You can provide it with a DefaultTabController or instantiate a TabController instead.

DefaultTabController(
  length: 2,
  child: SegmentedTabControl(
    tabs: [
      SegmentTab(
        label: 'Home',
      ),
      SegmentTab(
        label: 'Account',
      ),
    ],
  ),
)

You can style the whole widget, an individual tab, or both. A value on the currently selected SegmentTab overrides the corresponding value on SegmentedTabControl.

SegmentedTabControl(
  barDecoration: BoxDecoration(
    color: Colors.grey.shade300,
    borderRadius: BorderRadius.circular(10),
  ),
  indicatorDecoration: BoxDecoration(
    color: Colors.orange.shade200,
    borderRadius: BorderRadius.circular(10),
  ),
  tabTextColor: Colors.black45,
  selectedTabTextColor: Colors.white,
  tabs: [
    SegmentTab(
      label: 'ACCOUNT',
      color: Colors.red.shade200,
    ),
    SegmentTab(
      label: 'HOME',
      backgroundColor: Colors.blue.shade100,
      selectedTextColor: Colors.black45,
      textColor: Colors.black26,
    ),
    const SegmentTab(label: 'NEW'),
  ],
)

Note that the text colors are read from the selected tab and applied to the whole bar, so textColor and selectedTextColor set the bar's label colors while that tab is selected rather than coloring only that one tab.

Change tracking logic is identical to TabBar logic.

DefaultTabController.of(context).index

or

_controller.index

Сustom tab content

Use SegmentTab.labelBuilder to show any widget like an icon.

The selected-tab highlight is produced by painting the tab row twice and clipping the upper copy to the indicator, so the builder is called once per layer and receives the color of the layer it is painting. Plain Icon and Text children inherit that color. Use color for anything that does not inherit it, such as a border or an SVG:

SegmentTab(
  label: 'NEW',
  labelBuilder: (context, color) => Container(
    padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 2),
    decoration: BoxDecoration(
      border: Border.all(color: color),
      borderRadius: BorderRadius.circular(20),
    ),
    child: Text('NEW'),
  ),
)

Interactive children are not supported.

Additional information

If you have any ideas or are running into a bug, please submit an issue on github page: https://github.com/LanarsInc/animated-segmented-tab-control/issues

श्रेणियाँ

निर्भरताएँ

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

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

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

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