{"id":13810377,"url":"https://github.com/mapleafgo/clash-for-flutter","last_synced_at":"2026-05-25T05:07:50.329Z","repository":{"id":64450949,"uuid":"307047753","full_name":"mapleafgo/clash-for-flutter","owner":"mapleafgo","description":"Clash的桌面客户端，支持 windows、linux、macos","archived":false,"fork":false,"pushed_at":"2026-05-22T05:12:59.000Z","size":203570,"stargazers_count":942,"open_issues_count":9,"forks_count":144,"subscribers_count":9,"default_branch":"main","last_synced_at":"2026-05-22T14:37:04.867Z","etag":null,"topics":[],"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/mapleafgo.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-10-25T07:40:11.000Z","updated_at":"2026-05-22T06:42:07.000Z","dependencies_parsed_at":"2026-04-05T04:03:21.395Z","dependency_job_id":null,"html_url":"https://github.com/mapleafgo/clash-for-flutter","commit_stats":null,"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"purl":"pkg:github/mapleafgo/clash-for-flutter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapleafgo%2Fclash-for-flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapleafgo%2Fclash-for-flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapleafgo%2Fclash-for-flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapleafgo%2Fclash-for-flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapleafgo","download_url":"https://codeload.github.com/mapleafgo/clash-for-flutter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapleafgo%2Fclash-for-flutter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33461162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T02:24:28.008Z","status":"ssl_error","status_checked_at":"2026-05-25T02:23:23.339Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-08-04T02:00:51.650Z","updated_at":"2026-05-25T05:07:50.282Z","avatar_url":"https://github.com/mapleafgo.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"# Clash for Flutter\n\n这是一个 **Clash** 的多平台客户端，支持 windows、linux、macos、android、~~ios~~。\n\n\u003e [使用说明](https://mapleafgo.github.io/clash-for-flutter)\n\n## 界面\n\n![主页](./docs/images/home_page.png)\n\n![代理页](./docs/images/proxy_page.png)\n\n![代理页](./docs/images/log_page.png)\n\n![连接页](./docs/images/connect_page.png)\n\n![订阅页](./docs/images/profile_page.png)\n\n![设置页](./docs/images/settings_page.png)\n\n## 开发、打包说明\n\n- 基础环境\n\n  `Flutter v3.16+`\n\n  \u003e 对目标平台时，需要参照 Flutter 官方文档进行对应平台的环境搭建。如 Android 开发时，需要 Android-SDK\n\n  \u003e `Linux`环境下 [tray_manager](https://github.com/leanflutter/tray_manager) 需要 `libayatana-appindicator3-dev`\n\n- 下载内核\n\n  从 https://github.com/mapleafgo/cff-core/releases/latest 下载对应平台需要的内核，\n  然后将解压出来的内核文件移动到对应的路径，各平台路径如下:\n\n  ```shell\n  # windows\n  windows/core/libclash.dll\n  # linux\n  linux/core/libclash.so\n  # android\n  android/app/libs/libclash.aar\n  # macos\n  macos/Frameworks/libclash.dylib\n  # ios\n  ios/Frameworks/libclash.xcframework\n  ```\n\n  \u003e 注意：解压出来的文件，仅保留所需的后缀名文件即可，且将其改名为路径的文件名\n\n  \u003e 内核是在 Clash v1.18.0 (非premium) 的基础上进行二次开发的，仅加入了 tun 模式（参照 Meta 进行）\n\n- 编译项目\n\n  ```shell\n  # 1. 获取项目依赖\n  $ flutter pub get\n  # 2. 生成 .g.dart 文件\n  $ dart run build_runner build --delete-conflicting-outputs\n\n  # 3. 运行项目 (linux)\n  $ flutter run -d linux\n  # 3. 运行项目 (windows)\n  $ flutter run -d windows\n  # 3. 运行项目 (android)\n  $ flutter run -d android\n  # 3. 运行项目 (macos)\n  $ flutter run -d macos\n  ```\n\n- 打包项目\n\n  该项目用 [flutter_distributor](https://distributor.leanflutter.org/) 打包，打包步骤看 `flutter_distributor` 的官方文档吧\n\n## 主要技术\n\n- [Go](https://go.dev/)\n- [Clash](https://github.com/Dreamacro/clash)\n- [Flutter](https://flutter.dev)\n- [tray_manager](https://github.com/leanflutter/tray_manager)\n- [window_manager](https://github.com/leanflutter/window_manager)\n- [proxy_manager](https://github.com/Kingtous/proxy_manager)\n- [flutter_modular](https://github.com/Flutterando/modular)\n- [dio](https://github.com/cfug/dio)\n- [flutter_distributor](https://distributor.leanflutter.org/)\n\n## 写在后面\n\n自 1.0.0 版本开始，本软件全面从之前的 Go-Flutter 迁移到了官方 Flutter\n版本。迁移中部分参考了 [Fclash](https://github.com/Kingtous/Fclash) 非常感谢！\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapleafgo%2Fclash-for-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapleafgo%2Fclash-for-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapleafgo%2Fclash-for-flutter/lists"}