{"id":13550825,"url":"https://github.com/retroportalstudio/focused_menu","last_synced_at":"2026-02-23T17:01:59.373Z","repository":{"id":45051923,"uuid":"273196758","full_name":"retroportalstudio/focused_menu","owner":"retroportalstudio","description":"This is a repository for Flutter Focused Menu, an easy to implement package for adding Focused Long Press Menu to Flutter Applications","archived":false,"fork":false,"pushed_at":"2023-12-06T11:34:14.000Z","size":77942,"stargazers_count":196,"open_issues_count":19,"forks_count":97,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-03T21:33:42.690Z","etag":null,"topics":["flutter"],"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/retroportalstudio.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}},"created_at":"2020-06-18T09:28:45.000Z","updated_at":"2024-10-12T17:49:12.000Z","dependencies_parsed_at":"2024-01-16T19:12:56.831Z","dependency_job_id":null,"html_url":"https://github.com/retroportalstudio/focused_menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retroportalstudio%2Ffocused_menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retroportalstudio%2Ffocused_menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retroportalstudio%2Ffocused_menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retroportalstudio%2Ffocused_menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/retroportalstudio","download_url":"https://codeload.github.com/retroportalstudio/focused_menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246921920,"owners_count":20855339,"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":["flutter"],"created_at":"2024-08-01T12:01:38.109Z","updated_at":"2025-10-22T23:17:07.988Z","avatar_url":"https://github.com/retroportalstudio.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003e Flutter widget to create focused menu easily 🚀 \u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pub.dev/packages/focused_menu\"\u003e\u003cimg src=\"https://img.shields.io/pub/v/focused_menu.svg\" alt=\"Pub\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License: MIT\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/retroportalstudio/focused_menu\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/retroportalstudio/focused_menu?style=social\" alt=\"Pub\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pub.dev/packages/focused_menu/score\"\u003e\u003cimg src=\"https://img.shields.io/pub/likes/focused_menu?logo=flutter\" alt=\"Pub likes\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://pub.dev/packages/focused_menu/score\"\u003e\u003cimg src=\"https://img.shields.io/pub/popularity/focused_menu?logo=flutter\" alt=\"Pub popularity\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://pub.dev/packages/focused_menu/score\"\u003e\u003cimg src=\"https://img.shields.io/pub/points/focused_menu?logo=flutter\" alt=\"Pub points\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nThis is an easy to implement package for adding Focused Menu to Flutter Applications\n\n\n\u003cp float=\"center\"\u003e\n  \u003cimg src=\"https://github.com/retroportalstudio/focused_menu/blob/master/example/repo_files/focused_menu.gif?raw=true\" width=\"400\" /\u003e\n  \u003cimg src=\"https://github.com/retroportalstudio/focused_menu/blob/master/example/repo_files/using-controller.gif?raw=true\" width=\"400\" /\u003e \n  \u003cimg src=\"https://github.com/retroportalstudio/focused_menu/blob/master/example/repo_files/bottomToolbar.gif?raw=true\" width=\"400\" /\u003e\n\u003c/p\u003e\n\n---\n\n## Getting Started\nFist install the dependency\n\n### Add dependency\n\n```yaml\ndependencies:\n  focused_menu: CURRENT_VERSION\n```\n\n### Import package\n\n```dart\nimport 'package:focused_menu/focused_menu.dart';\n```\n## Usage\nTo Use, simply Wrap the Widget you want to add Focused Menu to, with FocusedMenuHolder:\n```dart\nFocusedMenuHolder(\n  menuItems: \u003cFocusedMenuItem\u003e[\n    FocusedMenuItem(\n      title: Text(\"This is a button\"),\n      trailing: Icon(Icons.open_in_new),\n      onPressed: () {},\n    ),\n  ],\n  child: CircleAvatar(\n    child: Image.asset(\"assets/images/dp_default.png\"),\n  ),\n),\n```\n\n---\n\n## Customizations\n\nIn order to customize your focused menu you can change any of the available attributes\n\n```dart\nFocusedMenuHolder(\n  menuOffset: 0,\n  controller: _avatarController,\n  animateMenuItems: true,\n  blurBackgroundColor: Colors.pink,\n  blurSize: 20,\n  bottomOffsetHeight: 20,\n  duration: Duration(milliseconds: 500),\n  menuBoxDecoration:\n      BoxDecoration(borderRadius: BorderRadius.circular(20)),\n  menuItemExtent: 60,\n  menuWidth: 200,\n  openWithTap: true,\n  enableMenuScroll: false,\n  toolbarButtons: [\n    ToolbarButtonItem(buttonIcon: Icon(Icons.delete,), onPressed: () {}, buttonIconColor: Colors.red),\n    ToolbarButtonItem(buttonIcon: Icon(Icons.share), onPressed: () {}, buttonIconColor: Colors.blue),\n  ],\n  onOpened: () =\u003e print('Opened'),\n  onClosed: () =\u003e print('onClosed'),\n  onPressed: () {},\n  menuItems: \u003cFocusedMenuItem\u003e[\n    FocusedMenuItem(\n      backgroundColor: Colors.green,\n      title: Text(\"This is a button\"),\n      trailing: Icon(Icons.open_in_new),\n      onPressed: () {},\n    ),\n  ],\n  child: CircleAvatar(\n    child: Image.asset(\"assets/images/dp_default.png\"),\n  ),\n),\n```\n\n\u003cbr\u003e\n\u003cdiv align=\"center\" \u003e\n  \u003cp\u003eThanks to all contributors\u003c/p\u003e\n  \u003ca href=\"https://github.com/retroportalstudio/focused_menu/graphs/contributors\"\u003e\n    \u003cimg src=\"https://contrib.rocks/image?repo=retroportalstudio/focused_menu\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretroportalstudio%2Ffocused_menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fretroportalstudio%2Ffocused_menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretroportalstudio%2Ffocused_menu/lists"}