Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: make retry work in ai generated images (#7993)

Richard Shiue4461c77992a5
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: () {},
+ ),
),
],
),