v1.0.1cupertino_sidebar
Flutter में iOS-शैली के साइडबार और फ्लोटिंग टैब बार लाता है, आपके ऐप में iPadOS-शैली के नेविगेशन के लिए एक शानदार, मूल अनुभव प्रदान करता है।
एक फ्लटर पैकेज जो iOS साइडबार और फ्लोटिंग टैब बार जोड़ता है।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
cupertino_sidebar brings iOS-style sidebars and floating tab bars to Flutter, providing a sleek, native feel for iPadOS-style navigation in your app.
A iOS-style sidebar that can be used to navigate through your app.
A iPadOS-style floating tab bar that can also be used to navigate through your app.
The CupertinoSidebar works very similar to Flutter's NavigationDrawer. It accepts a list of destinations, a selected index, and a callback function triggered when a destination is tapped.
CupertinoSidebar(
selectedIndex: _selectedIndex,
onDestinationSelected: (value) {
setState(() {
// Update the selected index when a destination is selected.
_selectedIndex = value;
});
},
children: [
// index 0
SidebarDestination(
icon: Icon(CupertinoIcons.home),
label: Text('Home'),
),
// index 1
SidebarDestination(
icon: Icon(CupertinoIcons.person),
label: Text('Items'),
),
// index 2
SidebarDestination(
icon: Icon(CupertinoIcons.search),
label: Text('Search'),
),
],
);
CupertinoSidebar also supports expandable sections, allowing you to group destinations.
...
children: [
...
SidebarSection(
label: Text('My section'),
children: [
SidebarDestination(
icon: Icon(CupertinoIcons.settings),
label: Text('Settings'),
),
...
],
),
]
For a full example, see the Sidebar example.
The CupertinoFloatingTabBar is managed by a TabController, with options to add tabs and specify a callback function.
CupertinoFloatingTabBar(
onDestinationSelected: (value) {},
controller: _myTabController,
tabs: const [
CupertinoFloatingTab(
child: Text('Today'),
),
CupertinoFloatingTab(
child: Text('Library'),
),
CupertinoFloatingTab.icon(
icon: Icon(CupertinoIcons.search),
),
],
)
For a full example, see the Tab Bar example.
This package is actively being developed. Planned features include:
Contributions are welcome! Feel free to submit issues, ideas, or pull requests. Together, we can make cupertino_sidebar even better!
निर्भरता सूची 3 आइटम
{"sdk":"flutter"}{"sdk":"flutter"}^6.0.0उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗