*
This commit is contained in:
parent
62bb3dfac4
commit
89d73c6bfb
3 changed files with 18 additions and 8 deletions
|
|
@ -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")),
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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 [
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue