Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设计一种便于收藏的Page url #26

Open
chen56 opened this issue Feb 12, 2023 · 1 comment
Open

设计一种便于收藏的Page url #26

chen56 opened this issue Feb 12, 2023 · 1 comment

Comments

@chen56
Copy link
Owner

chen56 commented Feb 12, 2023

比如:

  • /note/2/note/widgets/button?title=flutter-widget-sample-button3
  • /note/2?path=note/widgets/button/&title=flutter-widget-sample-button3

因为note的目录结构和title都可能变化,用其做url,不利于收藏,应为每页生成数字id,保存在其目录中,拖动目录时,id也会被拖走,这样就可以保证page<-->id的稳定关系

可参考https://flutter.cn/docs/development/ui/navigation/url-strategies 去掉#

@chen56
Copy link
Owner Author

chen56 commented Apr 21, 2024

基本工作已就绪,已加入自增id到note.json配置中,就差最后一步设计实现uri了,暂挂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant