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

Ability to add custom icons for lists #1611

Open
1 task done
EgorK0rshun opened this issue Dec 18, 2023 · 6 comments
Open
1 task done

Ability to add custom icons for lists #1611

EgorK0rshun opened this issue Dec 18, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@EgorK0rshun
Copy link
Contributor

Is there an existing issue for this?

Use case

It helps to expand the use of lists. You often need to move away from the usual patterns and use something of your own, design lists with the icon you like.
Besides, this is now a very frequent request from users in different applications.

Proposal

example
@EgorK0rshun EgorK0rshun added the enhancement New feature or request label Dec 18, 2023
@EchoEllet
Copy link
Collaborator

image

Is that what you meant?

@EgorK0rshun
Copy link
Contributor Author

@ellet0 , Yes, icons are already very cool and can be enough. But if there's going to be an option to add svg, it's going to be a completely closed enquiry

@EchoEllet
Copy link
Collaborator

@ellet0 , Yes, icons are already very cool and can be enough. But if there's going to be an option to add svg, it's going to be a completely closed enquiry

You can use any widget and not just an Icon from Icons

@EgorK0rshun
Copy link
Contributor Author

@ellet0 , sorry for the distraction, but can you tell me how I can make it so that several types of lists with custom icons coexist?

I can override it like you suggested.

elementOptions: const QuillEditorElementOptions(
          orderedList: QuillEditorOrderedListElementOptions(
            customWidget: Icon(Icons.add),
          ),

But then it will apply to all lists. It should be possible to combine them or show different ones

@EgorK0rshun EgorK0rshun reopened this Jan 10, 2024
@EchoEllet
Copy link
Collaborator

@ellet0 , sorry for the distraction, but can you tell me how I can make it so that several types of lists with custom icons coexist?

I can override it like you suggested.

elementOptions: const QuillEditorElementOptions(
          orderedList: QuillEditorOrderedListElementOptions(
            customWidget: Icon(Icons.add),
          ),

But then it will apply to all lists. It should be possible to combine them or show different ones

There is no need to be sorry. In fact, I'm the one who should be sorry

I decided to quit maintaining the library because the lack of time and lost interest in flutter because of kmp

I will only try to fix important bugs and fix my bugs if I caused any

I didn't understand what you mean by combine them? Can you share more info?

@EgorK0rshun
Copy link
Contributor Author

@ellet0 ,I'm sorry to hear that, I really am. I hope you'll be okay.

About what I wanted:
I wanted the ability to add multiple types of lists. Stars, squares, hearts and so on. So that you could apply these types of lists to the text and they would be equivalent.

Now, with this implementation, it is possible to use one of them, but I want all kinds of lists to be available to users.
Снимок экрана 2024-01-10 в 13 02 09

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

No branches or pull requests

2 participants