{"id":20931160,"url":"https://github.com/roundedinfinity/cupertino_sidebar","last_synced_at":"2025-06-28T08:34:53.823Z","repository":{"id":261968336,"uuid":"885755923","full_name":"RoundedInfinity/cupertino_sidebar","owner":"RoundedInfinity","description":"A flutter package that adds the iOS sidebar and floating tab bar.","archived":false,"fork":false,"pushed_at":"2024-11-09T16:31:17.000Z","size":6643,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T09:22:05.456Z","etag":null,"topics":["cupertino-design","flutter-package","flutter-ui","ipados","sidebar","tabbar"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RoundedInfinity.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-09T10:08:11.000Z","updated_at":"2025-02-09T22:59:31.000Z","dependencies_parsed_at":"2024-11-09T16:38:05.514Z","dependency_job_id":null,"html_url":"https://github.com/RoundedInfinity/cupertino_sidebar","commit_stats":null,"previous_names":["roundedinfinity/cupertino_sidebar"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoundedInfinity%2Fcupertino_sidebar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoundedInfinity%2Fcupertino_sidebar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoundedInfinity%2Fcupertino_sidebar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoundedInfinity%2Fcupertino_sidebar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoundedInfinity","download_url":"https://codeload.github.com/RoundedInfinity/cupertino_sidebar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248406059,"owners_count":21098133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cupertino-design","flutter-package","flutter-ui","ipados","sidebar","tabbar"],"created_at":"2024-11-18T21:39:38.234Z","updated_at":"2025-04-11T13:13:29.335Z","avatar_url":"https://github.com/RoundedInfinity.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cupertino Sidebar\n\n**cupertino_sidebar** brings iOS-style sidebars and floating tab bars to Flutter, providing a sleek, native feel for iPadOS-style navigation in your app.\n\n## Features\n\n### Cupertino Sidebar\n\n![Cupertino Sidebar](https://github.com/RoundedInfinity/cupertino_sidebar/blob/main/art/sidebar_demo.gif?raw=true)\n\nA iOS-style sidebar that can be used to navigate through your app.\n\n### Cupertino Floating Tab Bar\n\n![Cupertino Floating Tab Bar](https://github.com/RoundedInfinity/cupertino_sidebar/blob/main/art/tabbar.gif?raw=true)\n\nA iPadOS-style floating tab bar that can also be used to navigate through your app.\n\n## 📖 Usage\n\n### Sidebar\n\nThe `CupertinoSidebar` works very similar to Flutter's [NavigationDrawer](https://api.flutter.dev/flutter/material/NavigationDrawer-class.html). It accepts a list of destinations, a selected index, and a callback function triggered when a destination is tapped.\n\n```dart\nCupertinoSidebar(\n  selectedIndex: _selectedIndex,\n  onDestinationSelected: (value) {\n    setState(() {\n      // Update the selected index when a destination is selected.\n      _selectedIndex = value;\n    });\n  },\n  children: [\n    // index 0\n    SidebarDestination(\n      icon: Icon(CupertinoIcons.home),\n      label: Text('Home'),\n    ),\n    // index 1\n    SidebarDestination(\n      icon: Icon(CupertinoIcons.person),\n      label: Text('Items'),\n    ),\n    // index 2\n    SidebarDestination(\n      icon: Icon(CupertinoIcons.search),\n      label: Text('Search'),\n    ),\n  ],\n);\n```\n\nCupertinoSidebar also supports expandable sections, allowing you to group destinations.\n\n```dart\n...\nchildren: [\n    ...\n   SidebarSection(\n      label: Text('My section'),\n      children: [\n        SidebarDestination(\n          icon: Icon(CupertinoIcons.settings),\n          label: Text('Settings'),\n        ),\n        ...\n      ],\n    ),\n]\n```\n\nFor a full example, see the [Sidebar example](https://github.com/RoundedInfinity/cupertino_sidebar/blob/main/example/lib/main.dart).\n\n### Floating Tab Bar\n\nThe `CupertinoFloatingTabBar` is managed by a TabController, with options to add tabs and specify a callback function.\n\n```dart\nCupertinoFloatingTabBar(\n  onDestinationSelected: (value) {},\n  controller: _myTabController,\n  tabs: const [\n    CupertinoFloatingTab(\n      child: Text('Today'),\n    ),\n    CupertinoFloatingTab(\n      child: Text('Library'),\n    ),\n    CupertinoFloatingTab.icon(\n      icon: Icon(CupertinoIcons.search),\n    ),\n  ],\n)\n```\n\nFor a full example, see the [Tab Bar example](https://github.com/RoundedInfinity/cupertino_sidebar/blob/main/example/lib/tab_bar_example.dart).\n\n### Additional examples\n\n- [Creating a collapsible sidebar](https://github.com/RoundedInfinity/cupertino_sidebar/blob/main/example/lib/collapsible_side_bar.dart)\n\n## 📅 Roadmap\n\nThis package is actively being developed. Planned features include:\n\n- Tab bar to sidebar transition\n- **Adaptive scaffold** that switches between a sidebar and a floating tab bar and a bottom tab bar depending on the screen size.\n\n## 🤝 Contributing\n\nContributions are welcome! Feel free to submit issues, ideas, or pull requests. Together, we can make cupertino_sidebar even better!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froundedinfinity%2Fcupertino_sidebar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froundedinfinity%2Fcupertino_sidebar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froundedinfinity%2Fcupertino_sidebar/lists"}