Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about join the multi-picture selection? #22

Open
zcofl opened this issue Aug 13, 2018 · 3 comments
Open

How about join the multi-picture selection? #22

zcofl opened this issue Aug 13, 2018 · 3 comments

Comments

@zcofl
Copy link

zcofl commented Aug 13, 2018

In many cases, we need to use multi-picture selection。
eg: multi_image_picker

@pulyaevskiy
Copy link
Contributor

Good question. I thought about this as well.

Curious what would be expected result in your case? With existing image support it would mean that images would be inserted one after another on separate lines. Is it how you expect multi-picture to work?

@zcofl
Copy link
Author

zcofl commented Sep 3, 2018

Yes, many articles require continuous multi-picture display, and each picture can be satisfied with a single line.

@pinksmallpig
Copy link

1.edit pickImage() return Future<List<String>>
2.edit _pickFromGallery() with below code
final editor = ZefyrToolbar.of(context).editor;
final images = await editor.imageDelegate.pickImage(editor.imageDelegate.gallerySource);
for (var image in images) {
editor.formatSelection(NotusAttribute.embed.image(image));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants