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

* #1

Merged
merged 1 commit into from
May 3, 2023
Merged

* #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions lib/views/manga/detail/manga_detail_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,13 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
PopupMenuButton(
itemBuilder: (context) {
return [
const PopupMenuItem<int>(
value: 0,
child: Text("Edit categories")),
const PopupMenuItem<int>(
value: 0, child: Text("Migrate")),
if (widget.modelManga!.favorite)
const PopupMenuItem<int>(
value: 0,
child: Text("Edit categories")),
if (widget.modelManga!.favorite)
const PopupMenuItem<int>(
value: 0, child: Text("Migrate")),
const PopupMenuItem<int>(
value: 0, child: Text("Share")),
];
Expand Down
6 changes: 3 additions & 3 deletions lib/views/manga/detail/manga_details_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ class _MangaDetailsViewState extends ConsumerState<MangaDetailsView> {
chapters: widget.modelManga.chapters,
categories: [],
lastRead: widget.modelManga.lastRead);
manga.delete(
'${widget.modelManga.lang}-${widget.modelManga.link}'
);
manga.put(
'${widget.modelManga.lang}-${widget.modelManga.link}',
model);
},
child: Column(
children: const [
Expand Down
8 changes: 8 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.1"
m_toast:
dependency: "direct main"
description:
name: m_toast
sha256: "9b9096625a58da18341ba7d46f38b23a21a0be723aab008e1b5cfff71980f881"
url: "https://pub.dev"
source: hosted
version: "0.2.0"
matcher:
dependency: transitive
description:
Expand Down