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: card rebuild issue (#6277)

Mathias Mogensen477683d45497
diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/hover.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/hover.dart
index fa0b852b64..b9e97860f7 100644
--- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/hover.dart
+++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/hover.dart
@@ -153,12 +153,10 @@ class FlowyHoverContainer extends StatelessWidget {
: style.backgroundColor,
borderRadius: style.borderRadius,
),
- child: applyStyle
- ? Theme(
- data: hoverTheme,
- child: child,
- )
- : child,
+ child: Theme(
+ data: applyStyle ? hoverTheme : Theme.of(context),
+ child: child,
+ ),
);
}
}