{"id":32275668,"url":"https://github.com/master-wayne7/macos_dock","last_synced_at":"2026-07-13T19:31:50.177Z","repository":{"id":279787673,"uuid":"939989423","full_name":"master-wayne7/macos_dock","owner":"master-wayne7","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-03T05:26:06.000Z","size":7210,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T23:53:58.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/master-wayne7.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-27T12:43:32.000Z","updated_at":"2025-08-08T11:58:51.000Z","dependencies_parsed_at":"2025-02-27T17:00:02.179Z","dependency_job_id":"fe78ca35-5c0f-4c0e-adb6-89fc1438aaa4","html_url":"https://github.com/master-wayne7/macos_dock","commit_stats":null,"previous_names":["master-wayne7/macos_dock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/master-wayne7/macos_dock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master-wayne7%2Fmacos_dock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master-wayne7%2Fmacos_dock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master-wayne7%2Fmacos_dock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master-wayne7%2Fmacos_dock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/master-wayne7","download_url":"https://codeload.github.com/master-wayne7/macos_dock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master-wayne7%2Fmacos_dock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35434586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-13T02:00:06.543Z","response_time":119,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-22T23:53:55.536Z","updated_at":"2026-07-13T19:31:50.160Z","avatar_url":"https://github.com/master-wayne7.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nThis README describes the package. If you publish this package to pub.dev,\nthis README's contents appear on the landing page for your package.\n\nFor information about how to write a good package README, see the guide for\n[writing package pages](https://dart.dev/tools/pub/writing-package-pages).\n\nFor general information about developing packages, see the Dart guide for\n[creating packages](https://dart.dev/guides/libraries/create-packages)\nand the Flutter guide for\n[developing packages and plugins](https://flutter.dev/to/develop-packages).\n--\u003e\n\n# macos_dock\n\nA Flutter widget that recreates the macOS dock effect with smooth animations and customizable parameters.\n\n## Live Example\n\nCheck out the live demo: [MacOS Dock Demo](https://master-wayne7.github.io/macos_dock/)\n\n## Features\n\n- 🔄 Smooth scaling animation on hover\n- ⬆️ Upward translation effect\n- 🎯 Neighboring icons scale effect\n- 🎨 Highly customizable parameters\n- 🖼️ Support for any widget as dock items\n- ↕️ Dynamic height adjustment\n- 🎬 Customizable animation duration\n- 🔄 Drag and drop reordering support\n\n## Platform Support\n\n- ✅ Web\n- ✅ Windows\n- ✅ Linux\n- ✅ macOS\n\n## Installation\n\nAdd this to your package's `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  macos_dock: ^1.0.4\n```\n\n## Usage\n\n```dart\nMacosDock(\n  iconSize: 50,\n  scaleFactor: 1.5,\n  translateFactor: 1.0,\n  enableReordering: true, // Enable drag and drop reordering\n  onReorder: (oldIndex, newIndex) {\n    // Handle reordering here\n  },\n  children: (scale) =\u003e [\n    Image.asset('assets/finder.png'),\n    Image.asset('assets/safari.png'),\n    Image.asset('assets/messages.png'),\n  ],\n)\n```\n\n### Customization\n\nThe dock can be customized with several parameters:\n\n```dart\nMacosDock(\n  iconSize: 50,              // Base size of icons\n  iconSpacing: 8,           // Space between icons\n  scaleFactor: 1.5,         // How much icons scale up\n  translateFactor: 1.0,     // How much icons move up\n  radiusFactor: 1.0,        // Spread of the hover effect\n  defaultMaxScale: 2.5,     // Maximum scale factor\n  defaultMaxTranslate: -30, // Maximum upward translation\n  animationDuration: const Duration(milliseconds: 200),\n  enableReordering: false,  // Enable/disable drag and drop reordering\n  onReorder: (oldIndex, newIndex) {\n    // Handle reordering of items\n  },\n  children: (scale) =\u003e [\n    // Your dock items here\n  ],\n)\n```\n\n## Additional Parameters\n\n- `iconSize`: Base size of the icons (default: 40)\n- `iconSpacing`: Space between icons (default: 8)\n- `scaleFactor`: Controls the magnitude of the scaling effect (default: 1)\n- `translateFactor`: Controls the magnitude of the upward translation (default: 1)\n- `radiusFactor`: Controls how far the scaling effect spreads to neighboring icons (default: 1)\n- `defaultMaxScale`: Maximum scale factor for icons (default: 2.5)\n- `defaultMaxTranslate`: Maximum upward translation in pixels (default: -30)\n- `animationDuration`: Duration of the scaling/translation animations (default: 200ms)\n- `enableReordering`: Enable drag and drop reordering of dock items (default: false)\n- `onReorder`: Callback function when items are reordered (required if enableReordering is true)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaster-wayne7%2Fmacos_dock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaster-wayne7%2Fmacos_dock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaster-wayne7%2Fmacos_dock/lists"}