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

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

extended_tabs

Tab/TabBar/TabView के लिए एक शक्तिशाली आधिकारिक विस्तार पुस्तकालय, जो वर्तमान में ओवरस्क्रॉल होने पर पूर्वज या बच्चे के टैब को स्क्रॉल करने के लिए समर्थन करता है, और स्क्रॉल दिशा और कैश विस्तार सेट करता है।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
12.7 हज़ार
लाइक
175
Pub अंक
140

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

flutter pub add extended_tabs

पैकेज अवलोकन

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

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

उपयोग

  • नेस्टेड टैब नेविगेशन
  • स्क्रॉल करने योग्य टैब इंटरफेस
  • प्रदर्शन-अनुकूलित टैब दृश्य
  • कस्टम स्क्रॉल दिशा हैंडलिंग
  • डायनामिक टैब कंटेंट लोडिंग

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

  • माता और बच्चे के टैब के बीच ओवरस्क्रॉल प्रसार
  • निर्धारित स्क्रॉल दिशा
  • नियत रूप से निर्धारित कैश विस्तार
  • आधिकारिक एक्सटेंशन जिसमें मजबूत प्लेटफॉर्म समर्थन है
  • मौजूदा टैब विजेट्स के साथ निरंतर एकीकरण

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

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

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

  • Flutter के स्क्रॉल सिस्टम की समझ आवश्यक है
  • सरल टैब कार्यान्वयन में जटिलता बढ़ सकती है
  • बेसिक टैब की आवश्यकताओं के बजाय उन्नत उपयोग के मामलों के लिए सर्वोत्तम
  • मूल उदाहरणों के अतिरिक्त सीमित दस्तावेज़न
  • हस्तचालित स्क्रॉल कंट्रोलर प्रबंधन की संभावित आवश्यकता

मूल README

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

extended_tabs

pub package GitHub stars GitHub forks GitHub license GitHub issues FlutterCandies QQ 群

Language: English | 中文简体

A powerful official extension library of Tab/TabBar/TabView, which support to scroll ancestor or child Tabs when current is overscroll, and set scroll direction and cache extent.

Web demo for ExtendedTabs

Usage

dependencies:
  flutter:
    sdk: flutter
  extended_tabs: any
CarouselIndicator

Show tab indicator as Carousel style

   CarouselIndicator(
     controller: _controller,
     selectedColor: Colors.white,
     unselectedColor: Colors.grey,
     strokeCap: StrokeCap.round,
     indicatorPadding: const EdgeInsets.all(5),
   ),
ColorTabIndicator

Show tab indicator with color fill

    TabBar(
      indicator: ColorTabIndicator(Colors.blue),
      labelColor: Colors.black,
      tabs: [
        Tab(text: "Tab0"),
        Tab(text: "Tab1"),
      ],
      controller: tabController,
    )
Link
  /// if link is true and current tabbarview over scroll,
  /// it will check and scroll ancestor or child tabbarView.
  /// default is true
  final bool link;
  
  ExtendedTabBarView(
    children: <Widget>[
      List("Tab000"),
      List("Tab001"),
      List("Tab002"),
      List("Tab003"),
    ],
    controller: tabController2,
    link: true,
  )
ScrollDirection
  /// The axis along which the tab bar and tab view scrolls.
  ///
  /// Defaults to [Axis.horizontal].
  final Axis scrollDirection;

  Row(
    children: <Widget>[
      ExtendedTabBar(
        indicator: const ColorTabIndicator(Colors.blue),
        labelColor: Colors.black,
        scrollDirection: Axis.vertical,
        tabs: const <ExtendedTab>[
          ExtendedTab(
            text: 'Tab0',
            scrollDirection: Axis.vertical,
          ),
          ExtendedTab(
            text: 'Tab1',
            scrollDirection: Axis.vertical,
          ),
        ],
        controller: tabController,
      ),
      Expanded(
        child: ExtendedTabBarView(
          children: <Widget>[
            const ListWidget(
              'Tab1',
              scrollDirection: Axis.horizontal,
            ),
            const ListWidget(
              'Tab1',
              scrollDirection: Axis.horizontal,
            ),
          ],
          controller: tabController,
          scrollDirection: Axis.vertical,
        ),
      )
    ],
      )
CacheExtent
  /// cache page count
  /// default is 0.
  /// if cacheExtent is 1, it has two pages in cache
  final int cacheExtent;
  
  ExtendedTabBarView(
    children: <Widget>[
      List("Tab000"),
      List("Tab001"),
      List("Tab002"),
      List("Tab003"),
    ],
    controller: tabController2,
    link: true,
    cacheExtent: 1,
  )  
ShouldIgnorePointerWhenScrolling
  /// Whether the contents of the widget should ignore [PointerEvent] inputs.
  ///
  /// Setting this value to true prevents the use from interacting with the
  /// contents of the widget with pointer events. The widget itself is still
  /// interactive.
  ///
  /// For example, if the scroll position is being driven by an animation, it
  /// might be appropriate to set this value to ignore pointer events to
  /// prevent the user from accidentally interacting with the contents of the
  /// widget as it animates. The user will still be able to touch the widget,
  /// potentially stopping the animation.
  ///
  ///
  /// if true, child can't accept event before [ExtendedPageView],[ExtendedScrollable] stop scroll.
  ///
  ///
  /// if false, child can accept event before [ExtendedPageView],[ExtendedScrollable] stop scroll.
  /// notice: we don't know there are any issues if we don't ignore [PointerEvent] inputs when it's scrolling.
  ///
  ///
  /// Two way to solve issue that child can't hittest before [PageView] stop scroll.
  /// 1. set [shouldIgnorePointerWhenScrolling] false
  /// 2. use LessSpringClampingScrollPhysics to make animation quickly
  ///
  /// default is true.
  final bool shouldIgnorePointerWhenScrolling;
  
  ExtendedTabBarView(
    children: <Widget>[
      List("Tab000"),
      List("Tab001"),
      List("Tab002"),
      List("Tab003"),
    ],
    controller: tabController2,
    shouldIgnorePointerWhenScrolling: false,
    cacheExtent: 1,
  )  

श्रेणियाँ

निर्भरताएँ

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

  • sync_scroll_library^1.1.0

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

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