{"id":16382261,"url":"https://github.com/daniel-ioannou/flutter_adaptive_action_sheet","last_synced_at":"2025-04-06T20:10:19.870Z","repository":{"id":45152715,"uuid":"265165101","full_name":"Daniel-Ioannou/flutter_adaptive_action_sheet","owner":"Daniel-Ioannou","description":"A action bottom sheet that adapts to the platform (Android/iOS).","archived":false,"fork":false,"pushed_at":"2025-02-21T09:02:37.000Z","size":553,"stargazers_count":33,"open_issues_count":2,"forks_count":24,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T19:05:49.768Z","etag":null,"topics":["action-sheet","flutter","flutter-package"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/adaptive_action_sheet","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/Daniel-Ioannou.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":"2020-05-19T06:33:22.000Z","updated_at":"2025-02-21T08:28:17.000Z","dependencies_parsed_at":"2024-10-27T10:59:17.510Z","dependency_job_id":"dec37c89-664a-489f-a804-8fdc61d23ce1","html_url":"https://github.com/Daniel-Ioannou/flutter_adaptive_action_sheet","commit_stats":{"total_commits":114,"total_committers":9,"mean_commits":"12.666666666666666","dds":"0.13157894736842102","last_synced_commit":"f77e025ab72557e43b4f246544c50edbc9c68d72"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daniel-Ioannou%2Fflutter_adaptive_action_sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daniel-Ioannou%2Fflutter_adaptive_action_sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daniel-Ioannou%2Fflutter_adaptive_action_sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daniel-Ioannou%2Fflutter_adaptive_action_sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Daniel-Ioannou","download_url":"https://codeload.github.com/Daniel-Ioannou/flutter_adaptive_action_sheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543591,"owners_count":20955865,"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":["action-sheet","flutter","flutter-package"],"created_at":"2024-10-11T04:04:34.916Z","updated_at":"2025-04-06T20:10:19.845Z","avatar_url":"https://github.com/Daniel-Ioannou.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Adaptive action sheet\n\n[![pub package](https://img.shields.io/pub/v/adaptive_action_sheet.svg)](https://pub.dev/packages/adaptive_action_sheet)\n\nA action bottom sheet that adapts to the platform (Android/iOS).\n\n| iOS                                                                                                                                                         | Android                                                                                                                                                         |\n| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| \u003cimg width=\"520\" alt=\"n1\" src=\"https://raw.githubusercontent.com/Daniel-Ioannou/flutter_adaptive_action_sheet/master/assets/ReadMe%20iOS%20Screenshot.png\"\u003e | \u003cimg width=\"497\" alt=\"n2\" src=\"https://raw.githubusercontent.com/Daniel-Ioannou/flutter_adaptive_action_sheet/master/assets/ReadMe%20Android%20Screenshot.png\"\u003e |\n\n## Getting Started\n\nAdd the package to your pubspec.yaml:\n\n```yaml\nadaptive_action_sheet: ^2.0.4\n```\n\nIn your dart file, import the library:\n\n```Dart\nimport 'package:adaptive_action_sheet/adaptive_action_sheet.dart';\n```\n\nInstead of using a `showModalBottomSheet` use `showAdaptiveActionSheet` Widget:\n\n```Dart\nshowAdaptiveActionSheet(\n context: context,\n title: const Text('Title'),\n androidBorderRadius: 30,\n actions: \u003cBottomSheetAction\u003e[\n    BottomSheetAction(title: const Text('Item 1'), onPressed: (context) {}),\n    BottomSheetAction(title: const Text('Item 2'), onPressed: (context) {}),\n    BottomSheetAction(title: const Text('Item 3'), onPressed: (context) {}),\n ],\n cancelAction: CancelAction(title: const Text('Cancel')),// onPressed parameter is optional by default will dismiss the ActionSheet\n);\n```\n\n### Parameters:\n\n#### showAdaptiveActionSheet:\n\n- `actions`: The Actions list that will appear on the ActionSheet. (required)\n- `cancelAction`: The optional cancel button that show under the actions (grouped separately on iOS).\n- `title`: The optional title widget that show above the actions.\n- `androidBorderRadius`: The android border radius (default: 30).\n- `isDismissible`: Specifies whether the bottom sheet will be dismissed when user taps outside of the bottom sheet. It is `true` by default and cannot be `null`.\n- `useRootNavigator`: Can be passed to set `useRootNavigator` of `showCupertinoModalPopup` (Default true) and `useRootNavigator` of `showModalBottomSheet` (Default false)\n- The optional `backgroundColor` and `barrierColor` can be passed in to customize the appearance and behavior of persistent material bottom sheets(Android only).\n\n#### BottomSheetAction:\n\n- `title`: The primary content of the action sheet item. (required)\n- `onPressed`: The callback that is called when the action item is tapped. (required)\n- `leading`: A widget to display before the title. Typically an Icon widget. (optional)\n- `trailing`: A widget to display after the title. Typically an Icon or a CircleAvatar widget. (optional)\n\n#### CancelAction:\n\n- `title`: The primary content of the cancel action sheet item. (required)\n- `onPressed`: The callback that is called when the action item is tapped. `onPressed` is optional by default will dismiss the Action Sheet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-ioannou%2Fflutter_adaptive_action_sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniel-ioannou%2Fflutter_adaptive_action_sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-ioannou%2Fflutter_adaptive_action_sheet/lists"}