Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计通过

deep-linking-for-flutter-webdeep linking FOR Flutter WEB 命令行

Agent Skill

deep-linking-for-flutter-web 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,004

周安装

41

GitHub Stars

40

下载量

321
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:deep-linking-for-flutter-web(deep linking FOR Flutter WEB 命令行)
来源仓库:https://github.com/rodydavis/skills
仓库路径:skills/deep-linking-for-flutter-web
安装命令:
npx skills add https://github.com/rodydavis/skills --skill deep-linking-for-flutter-web
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/rodydavis/skills --skill deep-linking-for-flutter-web

简介

用于 Flutter Web 应用的路由导航与 URL 参数传递实现。

  • 支持特定页面链接、受保护路由与自定义转场动画配置。
  • 提供 pubspec.yaml 更新与 main.dart 路由设置示例代码。
  • 需根据实际项目结构调整文件路径,避免硬编码依赖。
  • deep-linking-for-flutter-web 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Deep Linking for Flutter Web

In this article I will show you how to have proper URL navigation for your application. Open links to specific pages, protected routes and custom transitions.

TLDR The final source here and an online demo.

Setup

Create a new flutter project called “flutter_deep_linking”

Open that folder up in VSCode.

Update your “pubspec.yaml” with the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2Fr43ga1tjg6p8x6i%2Fdeep_1_qbot26kikl.webp%3Fthumb%3D&s=63baf03c98de516f)

Step 1

Create a file at “lib/ui/home/screen.dart” and add the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2F7r1l1i535220rwy%2Fdeep_2_8o7bk1h6ep.webp%3Fthumb%3D&s=7085560a6641b01f)

Update your “lib/main.dart” with the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2Fh42392iez6y3m89%2Fdeep_3_u638b3ccuy.webp%3Fthumb%3D&s=fa5da1c63a5bccde)

Run your application and you should see the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2F43sd7k55aq8yce8%2Fdeep_4_fk5zfnixom.webp%3Fthumb%3D&s=0c78b2de38565b55)

Step 2

Now we need to grab the url the user enters into the address bar.

Create a folder at this location “lib/plugins/navigator”

Create a file inside named: “web.dart” with the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2F430154j9r710g4v%2Fdeep_5_r37mgvwx5q.webp%3Fthumb%3D&s=8fdc50f290ccd79f)

Create a file inside named: “unsupported.dart” with the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2Fdczy2vb19nv6oo8%2Fdeep_6_xogk4ly3ze.webp%3Fthumb%3D&s=f2c55b9d70f51640)

Create a file inside named: “navigator.dart” with the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2Flv0141dn57c869h%2Fdeep_7_atfvh3z2tt.webp%3Fthumb%3D&s=4cebcc1fc55fed9f)

Now go back to your “lib/main.dart” file and add the navigator:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2Fk75ny99q018o2y3%2Fdeep_8_4esmqtror6.webp%3Fthumb%3D&s=0060004061dcfccd)

It’s important to import the navigator as shown as this will have the conditional import for web compiling.

If you run the app now nothing should change.

Step 3

Now let’s add the proper routing.

Create a new file “lib/ui/router.dart” and add the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2F0y1ro5lf7h279w9%2Fdeep_9_xae1ebw89x.webp%3Fthumb%3D&s=d7545766bce4cfe9)

Also update “lib/main.dart” with the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2Fp7821ykg5on9lla%2Fdeep_10_ijxwpy9f4h.webp%3Fthumb%3D&s=7dc5e3820a619ff7)

Notice how we removed the “home” field for MaterialApp. This is because the router will handle everything. By default we will go home on “/”

Step 4

Now let’s add multiple screens to put this to the test! Add the following folders and files.

Create a file “lib/ui/account/screen.dart” and add the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2Fc081tn3331n994h%2Fdeep_11_o9tev9myvc.webp%3Fthumb%3D&s=aeeb54759afb7d30)

Create a file “lib/ui/settings/screen.dart” and add the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2Fq117wlgum9kr8gn%2Fdeep_12_8gbj5hxdmq.webp%3Fthumb%3D&s=98c7c1897ea47580)

Create a file “lib/ui/about/screen.dart” and add the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2Faz34574641hrj62%2Fdeep_13_aojf2nh3fj.webp%3Fthumb%3D&s=f033e86420e02452)

Add the following to “lib/ui/router.dart”:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2F8sa4176bo1f1c66%2Fdeep_14_9p3q4k5nqt.webp%3Fthumb%3D&s=825c1a043d125668)

Now when you navigate to /about, /account and /settings you will go to the new pages!

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2Fo0w52xqyj19cg2w%2Fdeep_15_lahb8r2wyw.webp%3Fthumb%3D&s=59608a0884755da4)

Step 5

Now let’s tie into the browser navigation buttons! Update “lib/ui/home/screen.dart” with the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2Feb89014ivx49f9c%2Fdeep_16_6ccpd3agpc.webp%3Fthumb%3D&s=b16993119fa371f0)

Now when you run the application and click on the settings icon it will launch the new screen as expected. But if you click your browsers back button it will go back to the home screen!

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2F192l3evo16e287e%2Fdeep_17_rovfeoa2t1.webp%3Fthumb%3D&s=6beb5c370f3e2c53)

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2F4zzn742z7lsg454%2Fdeep_18_75rxz9598q.webp%3Fthumb%3D&s=24c7eda3a28c2953)

Step 6

These urls are great but what if you want to pass data such as an ID that is not known ahead of time? No worries!

Update “lib/ui/account/screen.dart” with the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2F93f2yzeb7qkc089%2Fdeep_19_qyhv82wxfe.webp%3Fthumb%3D&s=7a706b9e2f610be2)

Let’s update our “lib/ui/router.dart” with the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2Far68a9w9l596080%2Fdeep_20_i6mmwwv4bg.webp%3Fthumb%3D&s=d8ad2b61462162e8)

Now when you run your application and navigate to “/account/40” you will see the following:

![](/api/image-proxy?url=https%3A%2F%2Frodydavis.com%2F_%2F..%2Fapi%2Ffiles%2Fpbc_2708086759%2F318co8rwm04s894%2Fdeep_21_ytsnzw349i.webp%3Fthumb%3D&s=959fc81c1de7d08d)

Conclusion

Dynamic routes work great for Flutter web, you just need to know what to tweak! This package uses a forked version of fluro for some fixes I added but once the PRs is merged you can just use the regular package. Let me know what you think below and if there is a better way I am not seeing!

Here is the final code: https://github.com/rodydavis/flutter_deep_linking

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.07%
按下载量换算122

Claude

29.29%
按下载量换算94

Cursor

20.23%
按下载量换算65

Gemini CLI

8.51%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills