सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
एक फ्लटर पैकेज जो टैबबार और टैबबारव्यू का उपयोग करके डायनामिक टैब्स के निर्माण और प्रबंधन को सरल बनाता है। यह विकासकर्ताओं को चिंता के बिना रनटाइम में टैब्स जोड़ने, हटाने या अद्यतन करने की अनुमति देता है। पैकेज टैब नेविगेशन, व्यू स्विचिंग और राज्य संरक्षण को बिना किसी झंझट के संभालता है, जिससे यह लचीले टैब लेआउट की आवश्यकता वाले ऐप्स के लिए आदर्श है। सरलता के साथ डिज़ाइन किया गया है, जिससे बॉयलरप्लेट कोड कम होता है और विकासकर्ता उत्पादकता बढ़ती है। एंड्रॉइड, आईओएस और वेब प्लेटफॉर्म्स के साथ संगत है।
उपयोग
डायनामिक डैशबोर्ड इंटरफेस बनाना
कस्टमाइज़ करने योग्य टैब नेविगेशन बनाएं
उपयोगकर्ता-निर्देशित टैब जोड़ने/हटाने का कार्यान्वयन
बहु-खंड सामग्री दृश्य विकसित करना
वास्तविक समय टैब अद्यतन का समर्थन करना
मुख्य विशेषताएँ
रनटाइम टैब संचालन
स्वचालित अवस्था संरक्षण
न्यूनतम बॉयलरप्लेट कोड
क्रॉस-प्लेटफॉर्म समर्थन (Android, iOS, Web)
टैब जोड़ने/हटाने के लिए सरल API
इनके लिए उपयुक्त
आसान टैब प्रबंधन की तलाश में विकासकर्ता
चर टैब गिनती वाले ऐप्स
प्रतिक्रियाशील टैब की आवश्यकता वाले डायनामिक UI
Flutter टैब पैटर्न सीखने वाले शुरुआती लोग
हल्के टैब समाधान की आवश्यकता वाले प्रोजेक्ट
विचार योग्य बातें
बुनियादी टैब स्टाइलिंग के आगे सीमित कस्टमाइजेशन
स्वाइप गेस्चर के लिए कोई बिल्ट-इन समर्थन नहीं है
टैब-विशेष तर्क का हस्तचालित संभाल आवश्यक है
अत्यधिक जटिल टैब हिरार्की के लिए आदर्श नहीं
उन्नत उपयोग के मामलों के लिए बाहरी अवस्था प्रबंधन पर निर्भर है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Dynamic TabBar
A Flutter package that simplifies the implementation of dynamic TabBar in your application.
With DynamicTabBarWidget, users can effortlessly manage and navigate through a list of Tabs. The widget is designed to auto-update as Tabs are added or removed, providing a seamless and dynamic user experience.
Dynamic Tab Management: Users can push or pop items in the List<TabData> tabs array, and the DynamicTabBarWidget will auto-update accordingly.
Tab Navigation: Implement the onTabChanged callback to handle tab change events.
Customization Options: Customize the appearance and behavior of the DynamicTabBarWidget using parameters like backIcon, nextIcon, showBackIcon, and showNextIcon.
Tab Position : Specify the position to which cursor moves to after adding new Tab using the onAddTabMoveTo property.
🧰 Parameters
dynamicTabs: List of TabData objects representing the dynamic tabs.
isScrollable: Set to true to enable scrollable tabs.
onTabChanged: Callback function triggered when a tab is changed.
onAddTabMoveTo: Enum value (MoveToTab.idol, MoveToTab.last) specifying where a tab navigator should move when Tab is added.
backIcon: Custom icon for the "Back" button, If isScrollable is false, this property is ignored.
nextIcon: Custom icon for the "Next" button.
showBackIcon: Boolean to show or hide the Back icon button, If isScrollable is false, this property is ignored.
showNextIcon: Boolean to show or hide the Next icon button, If isScrollable is false, this property is ignored.
leading: Custom leading Widget if needed.
trailing: Custom trailing Widget if needed.
TabBar default properties...
and TabBarView default properties...
📚 How to use
isScrollable
isScrollable: false
isScrollable: true
showBackIcon
If isScrollable is false, this property is ignored.
showBackIcon: false
showBackIcon: true
showNextIcon
If isScrollable is false, this property is ignored.
showNextIcon: false
showNextIcon: true
backIcon
We can use custom Icon for back button, If isScrollable is false, this property is ignored.
backIcon: Icon()
backIcon: null
Icon(Icons.keyboard_double_arrow_left)
Default back icon will be used
nextIcon
We can use custom Icon for next button, If isScrollable is false, this property is ignored.
nextIcon: Icon()
nextIcon: null
Icon(Icons.keyboard_double_arrow_right)
Default back icon will be used
💻 Example
Check out the example app in the example directory for a complete example with additional parameters.