Skip to main content
edited for readability
Source Link
the Tin Man
  • 160.9k
  • 44
  • 222
  • 308

To convert your Xfile image to File image to show the image inside the widget you can use this code

XFile? selectedImage;:

Image.file(File(selectedImage!.path))

XFile? selectedImage;

Image.file(File(selectedImage!.path))

To convert your Xfile image to File image to show the image inside the widget you can use this code

XFile? selectedImage;

Image.file(File(selectedImage!.path))

To convert your Xfile image to File image to show the image inside the widget you can use:

XFile? selectedImage;

Image.file(File(selectedImage!.path))
Source Link
botCoder
  • 385
  • 3
  • 3

To convert your Xfile image to File image to show the image inside the widget you can use this code

XFile? selectedImage;

Image.file(File(selectedImage!.path))