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

Size does not calculate correctly when containing prefix #25

Open
GabrieleSuzart opened this issue Jul 27, 2021 · 1 comment
Open

Size does not calculate correctly when containing prefix #25

GabrieleSuzart opened this issue Jul 27, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@GabrieleSuzart
Copy link
Contributor

Problem

When I set a prefix, with fullwidth: false, the width doesn't consider the length of the prefix.

Code

return AutoSizeTextField(
  controller: controller,
  maxLines: 1,
  fullwidth: false,
  decoration: InputDecoration(
    prefix: Text('R\$'),
  ),
);

Expected

The calculated width is added to the width of the prefix

Version

auto_size_text_field: ^1.0.0-nullsafety.1

Record

Gravacao.de.Tela.2021-07-27.as.18.42.46.mov
@lzhuor
Copy link
Owner

lzhuor commented Oct 23, 2021

Thank you @GabrieleSuzart ! I will take a look.

@lzhuor lzhuor self-assigned this Oct 23, 2021
@lzhuor lzhuor added the bug Something isn't working label Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants