Skip to content

feat(reader): add 'view original' button for local comics#123

Draft
wellorbetter wants to merge 1 commit into
raoxwup:mainfrom
wellorbetter:feat/download-navigate-to-details
Draft

feat(reader): add 'view original' button for local comics#123
wellorbetter wants to merge 1 commit into
raoxwup:mainfrom
wellorbetter:feat/download-navigate-to-details

Conversation

@wellorbetter
Copy link
Copy Markdown
Contributor

@wellorbetter wellorbetter commented Apr 23, 2026

Description

Add a "view original" button to the reader AppBar when reading downloaded (local) comics, allowing users to navigate back to the online comic detail page.

Closes #119

Reasoning

Users who download many comics have no way to navigate back to the original comic's online detail page from the reader. This adds a single conditional button that only appears for local comics (ReaderType.local), keeping the reader clean for online and imported comics.

Key design decisions:

  • Minimal invasion: 1 file changed, 11 lines added, zero modifications to existing logic
  • Consistent patterns: Uses context.selector matching existing AppBar field access style
  • Correct ID chain: DownloadComic.id is the same value passed from ComicDetails.comicId at download time, so /details/$comicId routes correctly

Changes

Modified files (1):

  • app_bar.dart — Add comic_state.dart import, read type/id from provider, conditionally render IconButton with Icons.open_in_new for ReaderType.local

Type of change

  • Bug fix
  • New feature / Enhancement
  • Breaking change
  • Refactor
  • Performance
  • Style
  • Docs
  • Chore

@wellorbetter wellorbetter changed the title feat(download): add 'view details' to navigate back to comic detail page feat(reader): add 'view original' button for local comics Apr 24, 2026
… to online detail page

When reading a downloaded comic, a new button appears in the reader's
AppBar that navigates to the comic's online detail page.

Closes raoxwup#119
@wellorbetter wellorbetter force-pushed the feat/download-navigate-to-details branch from 01da3c9 to 690562e Compare April 24, 2026 02:31
@wellorbetter wellorbetter marked this pull request as draft April 24, 2026 02:36
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.

安卓端下载的漫画,能不能返回原漫画详情那里?

1 participant