diff --git a/ci/cmd/check_asset/main.go b/ci/cmd/check_asset/main.go index ffd50b0..64b9c17 100644 --- a/ci/cmd/check_asset/main.go +++ b/ci/cmd/check_asset/main.go @@ -64,7 +64,7 @@ func main() { releaseFileName = fmt.Sprintf("wax-%v-android-x86_64.apk", version.Code) } if strings.HasPrefix(flutterVersion, "2") { - releaseFileName = "old_flutter-" + releaseFileName + releaseFileName = "z-old_flutter-" + releaseFileName } // get version getReleaseRequest, err := http.NewRequest( diff --git a/ci/cmd/upload_asset/main.go b/ci/cmd/upload_asset/main.go index 635ec55..e20e8bb 100644 --- a/ci/cmd/upload_asset/main.go +++ b/ci/cmd/upload_asset/main.go @@ -82,7 +82,7 @@ func main() { contentType = "application/octet-stream" } if strings.HasPrefix(flutterVersion, "2") { - releaseFileName = "old_flutter-" + releaseFileName + releaseFileName = "z-old_flutter-" + releaseFileName } releaseFilePath = path.Join("..", releaseFilePath) info, err := os.Stat(releaseFilePath) diff --git a/ci/version.code.txt b/ci/version.code.txt index 46882bc..301779b 100644 --- a/ci/version.code.txt +++ b/ci/version.code.txt @@ -1 +1 @@ -v1.1.6 \ No newline at end of file +v1.1.7 \ No newline at end of file diff --git a/ci/version.info.txt b/ci/version.info.txt index 4bcc451..d7804fa 100644 --- a/ci/version.info.txt +++ b/ci/version.info.txt @@ -1,3 +1,7 @@ +v1.1.7 + +- [x] 🚀修复删除收藏在一些列表模式下不显示 + v1.1.6 - [x] 🚀登录后可收藏漫画 diff --git a/lib/screens/components/comic_list.dart b/lib/screens/components/comic_list.dart index 512b293..1c79275 100644 --- a/lib/screens/components/comic_list.dart +++ b/lib/screens/components/comic_list.dart @@ -74,14 +74,7 @@ class _ComicListState extends State { url: widget.data[i].cover, width: constraints.maxWidth, height: constraints.maxHeight, - addLongPressMenus: widget.data[i].favouriteId > 0 - ? [ - TextMenu( - "删除收藏", - deleteAction(widget.data[i]), - ), - ] - : null, + addLongPressMenus: _buildDeleteMenu(widget.data[i]), ); }, ), @@ -174,6 +167,7 @@ class _ComicListState extends State { setState(() {}); }; widgets.add(GestureDetector( + onLongPress: _buildDeleteDialog(widget.data[i]), onTap: callback, child: Stack(children: [ ComicInfoCard(widget.data[i]), @@ -233,6 +227,7 @@ class _ComicListState extends State { setState(() {}); }; widgets.add(GestureDetector( + onLongPress: _buildDeleteDialog(widget.data[i]), onTap: callback, child: Stack(children: [ Card( @@ -242,6 +237,7 @@ class _ComicListState extends State { url: widget.data[i].cover, width: constraints.maxWidth, height: constraints.maxHeight, + addLongPressMenus: _buildDeleteMenu(widget.data[i]), ); return Stack( children: [ @@ -345,6 +341,7 @@ class _ComicListState extends State { setState(() {}); }; widgets.add(GestureDetector( + onLongPress: _buildDeleteDialog(widget.data[i]), onTap: callback, child: Stack(children: [ Column( @@ -360,6 +357,7 @@ class _ComicListState extends State { url: widget.data[i].cover, width: constraints.maxWidth, height: constraints.maxHeight, + addLongPressMenus: _buildDeleteMenu(widget.data[i]), ); return image; }, @@ -460,6 +458,17 @@ class _ComicListState extends State { return null; } + List? _buildDeleteMenu(ComicSimple data) { + return data.favouriteId > 0 + ? [ + TextMenu( + "删除收藏", + deleteAction(data), + ), + ] + : null; + } + void Function() deleteAction(ComicSimple data) { return () { () async {