auto_size_text icon indicating copy to clipboard operation
auto_size_text copied to clipboard

AutoSize TextField

Open raphFlash opened this issue 6 years ago • 11 comments

Hello, Thanks for your AutoSizeText, it works really well. Is it possible to have the same auto sizing feature for a TextField. The Textfield would adjust the fontsize based on the input. It would be really nice.

raphFlash avatar Oct 03 '19 15:10 raphFlash

Currently that is not possible. Text and TextField are two different widgets so we would need a AutoSizeTextField. I'll leave this issue open and when other users need have the same request, I'll see what I can do 👍

simc avatar Oct 03 '19 15:10 simc

Same here! Needed it always in every project ^^

Ahmadre avatar Oct 05 '19 01:10 Ahmadre

I'm really unsure about this. Afaik neither iOS nor Android have an equivalent native EditText with auto sizing text. And I have never used an app where text resizes while I enter it...

simc avatar Oct 05 '19 15:10 simc

Alright and what about a textfield like facebook, where you type text for a post? Facebook is shrinking the text size while typing. That's exactly what i need. I mean it's like the tutorial gifs you provide in your readme. I did a workaround for that posting issue, but autosizetext would help here a lot :)

Ahmadre avatar Nov 02 '19 01:11 Ahmadre

I needed something like this too. I have an interface where all of the on the screen text is editable to certain roles and instead of switching them between Text and TextField, I instead only display TextFields with their readOnly properties toggled.

Currently, I feel like switching from AutoSizeText to a TextField would also give the person editing a different impression since their text would size differently once they'd submitted.

stargazing-dino avatar Nov 04 '19 14:11 stargazing-dino

Okay, you convinced me ^^

I don't know when I will have time to implement this.

simc avatar Nov 04 '19 14:11 simc

Agreed! Would be great to have it for TextField and TextFormField!

hicnar avatar Dec 21 '19 15:12 hicnar

Does anyone know if it is possible to adjust the text in the text field?

DomingoMG avatar Feb 27 '20 16:02 DomingoMG

@leisim any updates?

Ahmadre avatar Apr 25 '20 02:04 Ahmadre

Hi @Nolence @Ahmadre @raphFlash @leisim , I want it too so I created one.

🎉 You might want to try this: https://github.com/lzhuor/auto_size_text_field

It's a work based off @leisim 's logic in auto_size_text. Hope we can improve auto_size_text_field together. ❤️

lzhuor avatar Jun 17 '20 17:06 lzhuor

@lzhuor thank you sooooo much ❤️

Ahmadre avatar Jun 17 '20 17:06 Ahmadre