memspace / zefyr

Soft and gentle rich text editing for Flutter applications.
https://zefyr-editor.gitbook.io
2.21k stars 553 forks source link

How to show images in zefyr view using imagedelegate? #490

Open marc-walton opened 3 years ago

marc-walton commented 3 years ago

I used firebase as cloud storage for images and this is how it look in the firebase console. "insert":"Zefyr Quick Start"},{"insert":"\n","attributes":{"block":"quote"}},{"insert":"​","attributes":{"embed":{"type":"image","source":"https://firebasestorage.googleapis.com/v0/b/fashow-d9ed2.appspot.com/o/post_File%3A%20'%2Fdata%2Fuser%2F0%2Fcom.fashow.fashow%2Fcache%2Fimage_picker1997777282086208868.jpg'.jpg?alt=media&token=8a8ff7f2-eb51-49f7-ba29-ba2e402fd4e6"}}},{"insert":"\n

How do I get only that image source url into the zefyrimage delegate ?

singerdmx commented 3 years ago

check out https://github.com/memspace/zefyr/issues/463

singerdmx commented 3 years ago

image

singerdmx commented 3 years ago

image

singerdmx commented 3 years ago

image

marc-walton commented 3 years ago

check out #463

I know how to use image picker and upload but I don't how to get the url of the image from firebase to use in zefyrview