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

AutoSize TextField #38

Open
raphFlash opened this issue Oct 3, 2019 · 11 comments
Open

AutoSize TextField #38

raphFlash opened this issue Oct 3, 2019 · 11 comments
Labels
enhancement New feature or request

Comments

@raphFlash
Copy link

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 raphFlash added the enhancement New feature or request label Oct 3, 2019
@simc
Copy link
Owner

simc commented Oct 3, 2019

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 👍

@Ahmadre
Copy link

Ahmadre commented Oct 5, 2019

Same here! Needed it always in every project ^^

@simc
Copy link
Owner

simc commented Oct 5, 2019

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...

@Ahmadre
Copy link

Ahmadre commented Nov 2, 2019

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 :)

@stargazing-dino
Copy link

stargazing-dino commented Nov 4, 2019

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.

@simc
Copy link
Owner

simc commented Nov 4, 2019

Okay, you convinced me ^^

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

@hicnar
Copy link

hicnar commented Dec 21, 2019

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

@DomingoMG
Copy link

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

@Ahmadre
Copy link

Ahmadre commented Apr 25, 2020

@leisim any updates?

@lzhuor
Copy link

lzhuor commented Jun 17, 2020

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. ❤️

@Ahmadre
Copy link

Ahmadre commented Jun 17, 2020

@lzhuor thank you sooooo much ❤️

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

7 participants