From 4461c77992a5f085f22e56b5c5b39670d46c4b59 Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Tue, 27 May 2025 19:07:34 +0800 Subject: [PATCH] fix: make retry work in ai generated images (#7993) --- .../editor_plugins/image/resizeable_image.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart index df617e4d44..7a458add6e 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart @@ -285,9 +285,14 @@ class _ImageLoadFailedWidget extends StatelessWidget { maxLines: 2, ), const VSpace(12), - OutlinedRoundedButton( - text: LocaleKeys.chat_retry.tr(), - onTap: onRetry, + Listener( + onPointerDown: (event) { + onRetry(); + }, + child: OutlinedRoundedButton( + text: LocaleKeys.chat_retry.tr(), + onTap: () {}, + ), ), ], ),