{"id":13548063,"url":"https://github.com/lesnitsky/native_context_menu","last_synced_at":"2025-09-01T00:39:23.296Z","repository":{"id":40375968,"uuid":"406393666","full_name":"lesnitsky/native_context_menu","owner":"lesnitsky","description":"Native context menu for Flutter apps","archived":false,"fork":false,"pushed_at":"2023-01-26T13:59:39.000Z","size":153,"stargazers_count":167,"open_issues_count":16,"forks_count":26,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T08:43:26.561Z","etag":null,"topics":["flutter","flutter-desktop","flutter-macos"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/native_context_menu","language":"C++","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/lesnitsky.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}},"created_at":"2021-09-14T14:09:20.000Z","updated_at":"2025-03-16T10:05:23.000Z","dependencies_parsed_at":"2023-02-14T18:00:57.764Z","dependency_job_id":null,"html_url":"https://github.com/lesnitsky/native_context_menu","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesnitsky%2Fnative_context_menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesnitsky%2Fnative_context_menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesnitsky%2Fnative_context_menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesnitsky%2Fnative_context_menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lesnitsky","download_url":"https://codeload.github.com/lesnitsky/native_context_menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246927835,"owners_count":20856198,"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","flutter-desktop","flutter-macos"],"created_at":"2024-08-01T12:01:05.261Z","updated_at":"2025-04-03T03:11:15.173Z","avatar_url":"https://github.com/lesnitsky.png","language":"C++","readme":"# native_context_menu\n\nNative context menu for flutter apps\n\n[![lesnitsky.dev](https://lesnitsky.dev/shield.svg?hash=69464)](https://lesnitsky.dev?utm_source=native_context_menu)\n[![GitHub stars](https://img.shields.io/github/stars/lesnitsky/native_context_menu.svg?style=social)](https://github.com/lesnitsky/native_context_menu)\n[![Twitter Follow](https://img.shields.io/twitter/follow/lesnitsky_dev.svg?label=Follow%20me\u0026style=social)](https://twitter.com/lesnitsky_dev)\n\n![Preview](https://lesnitsky-images.s3.eu-north-1.amazonaws.com/native_context_menu.gif)\n\n## Installation\n\n```bash\nflutter pub add native_context_menu\n```\n\n## Usage\n\n```dart\nimport 'package:native_context_menu/native_context_menu.dart';\nimport 'package:flutter/material.dart';\n\nvoid main() {\n  runApp(App());\n}\n\nclass App extends StatefulWidget {\n  const App({Key? key}) : super(key: key);\n\n  @override\n  State\u003cApp\u003e createState() =\u003e _AppState();\n}\n\nclass _AppState extends State\u003cApp\u003e {\n  String? action;\n\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      home: Scaffold(\n        body: ContextMenuRegion(\n          onDismissed: () =\u003e setState(() =\u003e action = 'Menu was dismissed'),\n          onItemSelected: (item) =\u003e setState(() {\n            action = '${item.title} was selected';\n          }),\n          menuItems: [\n            MenuItem(title: 'First item'),\n            MenuItem(title: 'Second item'),\n            MenuItem(\n              title: 'Third item with submenu',\n              items: [\n                MenuItem(title: 'First subitem'),\n                MenuItem(title: 'Second subitem'),\n                MenuItem(title: 'Third subitem'),\n              ],\n            ),\n            MenuItem(title: 'Fourth item'),\n          ],\n          child: Card(\n            child: Center(\n              child: Text(action ?? 'Right click me'),\n            ),\n          ),\n        ),\n      ),\n    );\n  }\n}\n```\n\n## Platform support\n\n| Platform | Supported |\n| -------- | --------- |\n| MacOS    | ✅        |\n| Linux    | ✅        |\n| Windows  | ✅        |\n\n## License\n\nMIT\n\n---\n\n[![lesnitsky.dev](https://lesnitsky.dev/shield.svg?hash=69464)](https://lesnitsky.dev?utm_source=native_context_menu)\n[![GitHub stars](https://img.shields.io/github/stars/lesnitsky/native_context_menu.svg?style=social)](https://github.com/lesnitsky/native_context_menu)\n[![Twitter Follow](https://img.shields.io/twitter/follow/lesnitsky_dev.svg?label=Follow%20me\u0026style=social)](https://twitter.com/lesnitsky_dev)\n","funding_links":[],"categories":["C++","Packages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesnitsky%2Fnative_context_menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flesnitsky%2Fnative_context_menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesnitsky%2Fnative_context_menu/lists"}