fix: use Image.file instead of DecoratedBox and FileImage (#3606)

Co-authored-by: Alazar Genene <alazargenene@Alazars-MacBook-Pro-2.local>
This commit is contained in:
Alazar Genene 2023-10-04 14:48:31 -07:00 committed by GitHub
parent 4220309cf8
commit 78d8ec9a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -484,14 +484,9 @@ class _ImageGridItemState extends State<ImageGridItem> {
children: [ children: [
InkWell( InkWell(
onTap: widget.onImageSelect, onTap: widget.onImageSelect,
child: DecoratedBox( child: ClipRRect(
decoration: BoxDecoration(
image: DecorationImage(
image: FileImage(File(widget.imagePath)),
fit: BoxFit.cover,
),
borderRadius: Corners.s8Border, borderRadius: Corners.s8Border,
), child: Image.file(File(widget.imagePath), fit: BoxFit.cover),
), ),
), ),
if (showDeleteButton) if (showDeleteButton)