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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: use Image.file instead of DecoratedBox and FileImage (#3606)
Alazar Genene78d8ec9a3e4d
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_editor.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_editor.dartindex b74eb4470b..bb7c916b90 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_editor.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_editor.dart@@ -484,14 +484,9 @@ class _ImageGridItemState extends State<ImageGridItem> {children: [InkWell(onTap: widget.onImageSelect,- child: DecoratedBox(- decoration: BoxDecoration(- image: DecorationImage(- image: FileImage(File(widget.imagePath)),- fit: BoxFit.cover,- ),- borderRadius: Corners.s8Border,- ),+ child: ClipRRect(+ borderRadius: Corners.s8Border,+ child: Image.file(File(widget.imagePath), fit: BoxFit.cover),),),if (showDeleteButton)