fleather icon indicating copy to clipboard operation
fleather copied to clipboard

Add hintText for editor

Open komakur opened this issue 10 months ago • 8 comments

Currently it's impossible to set hint text for the editor

komakur avatar Apr 24 '24 14:04 komakur

Have you considered using ’FleatherField’? @komakur

Amir-P avatar Apr 25 '24 11:04 Amir-P

Have you considered using ’FleatherField’? @komakur

if it gives same functionalities as FleatherEditor I might consider using that. But I didn't find clear docs about FleatherField

komakur avatar Apr 25 '24 12:04 komakur

if it gives same functionalities as FleatherEditor I might consider using that. But I didn't find clear docs about FleatherField

Yeah, sorry about that. Documentation needs a lot of improvements. But, it's exposed by the fleather package and wraps the FleatherEditor with InputDecoration which can be customized.

Amir-P avatar Apr 25 '24 12:04 Amir-P

oh, I see now Thanks a lot)

komakur avatar Apr 25 '24 13:04 komakur

@Amir-P the problem now, that the toolbar in FleatherField is always at the bottom, thus is visible when its focused. I think that should be customisable

komakur avatar Apr 25 '24 13:04 komakur

What do you mean by toolbar? Providing a screenshot or video may help. @komakur

Amir-P avatar Apr 26 '24 13:04 Amir-P

By toolbar I mean toolbar param in FleatherField. You can simply go to FleatherField impl and check the implementation

komakur avatar Apr 30 '24 09:04 komakur

The toolbar param is useful when you want to show toolbar below field but inside the input decorator. If you want your toolbar to be on top, don't use toolbar param of FleatherField and instead add toolbar widget by yourself. For example:

Column(
  children: [
    FleatherToolbar.basic(controller: controller),
    FleatherField(controller: controller),
  ],
)

Amir-P avatar Apr 30 '24 09:04 Amir-P

Closing this issue for now as it has been stale for a while. Feel free to re-open

amantoux avatar Aug 09 '24 22:08 amantoux