Skip to content

feat: 更适合桌面端的路由切换动画#2

Merged
lxdklp merged 6 commits intolxdklp:mainfrom
futurw4v:feature/route-animation
Jan 25, 2026
Merged

feat: 更适合桌面端的路由切换动画#2
lxdklp merged 6 commits intolxdklp:mainfrom
futurw4v:feature/route-animation

Conversation

@futurw4v
Copy link
Contributor

1.增加了一个从右到左滑入的路由切换动画,并将对MaterialPageRoute全部替换为了SlidePageRoute

2.使git不再追踪.vscode,.vscode文件夹为个人配置不应被上传到远程仓库中

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a custom slide page route animation more suitable for desktop applications and systematically replaces all MaterialPageRoute usages with the new SlidePageRoute. It also removes the .vscode folder from version control.

Changes:

  • Added a new SlidePageRoute class that provides a right-to-left slide transition animation with customizable duration (default 300ms)
  • Replaced all ~50 instances of MaterialPageRoute with SlidePageRoute across the codebase
  • Applied extensive code formatting improvements (line breaks, indentation, spacing consistency)
  • Removed .vscode/settings.json from repository (already in .gitignore)

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
lib/function/slide_page_route.dart New custom page route with slide animation and shadow effect
lib/main.dart Updated route generation to use SlidePageRoute; code formatting improvements
lib/pages/*.dart Replaced MaterialPageRoute with SlidePageRoute in navigation calls
lib/pages/home/*.dart Updated navigation to use SlidePageRoute; formatting improvements
lib/pages/setting/*.dart Migrated all page navigations to SlidePageRoute
lib/pages/online.dart Updated navigation and applied extensive formatting improvements
lib/pages/download/*.dart Replaced MaterialPageRoute throughout download flow
.vscode/settings.json Removed personal IDE configuration from repository

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@futurw4v
Copy link
Contributor Author

考虑下加个CONTRIBUTING.md?回头一看才发现ide给我全格式化了()

@lxdklp
Copy link
Owner

lxdklp commented Jan 25, 2026

首先先是感谢提交pr :) 这是我个人的项目收到的首个pr。没有加贡献指南是因为我根本没有想到作为一个我个人学习flutter的项目(我开始写这个项目时完全是flutter新手, 从前期混乱的代码和命名也可以看出)会收到收到pr, 所以也没有去写贡献指南, 我晚点会去考虑的

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 21 out of 21 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 21 out of 21 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@lxdklp lxdklp merged commit e5e77f3 into lxdklp:main Jan 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants