dart - How to upload image along with text typed in textbox in flutter? - Stack Overflow

PHOTO EMBED

Thu Sep 15 2022 11:13:33 GMT+0000 (Coordinated Universal Time)

Saved by @karthikbt22 #dart

File image = File("/storage/emulated/0/Android/data/my_app/files/Pictures/image_214.png");  // Replace the path string with any valid path on your device if you want to test it out. out
String fileName = file.path.split('/').last;
content_copyCOPY

https://stackoverflow.com/questions/68577939/how-to-upload-image-along-with-text-typed-in-textbox-in-flutter