lzhuor / auto_size_text_field

Flutter TextField widget that automatically resizes text field to fit perfectly within its bounds.
https://pub.dev/packages/auto_size_text_field
MIT License
52 stars 35 forks source link

Text should resize itself after reaching MaxLines not after 1 line #35

Open Bawen34 opened 2 years ago

Bawen34 commented 2 years ago

Hello, When using the widget in multiline with a maxLines parameter, the text resize itself after reaching the end of the first line, not after reaching the maxLines

AutoSizeTextField(
              controller: sessionDescription,
              maxLines: 3,
              minLines: 3,
              keyboardType: TextInputType.multiline,
              decoration: InputDecoration(                
                  alignLabelWithHint: true,               
                  labelText: 'Description'),             
              textAlign: TextAlign.left,
              minFontSize: 12,
            ),
TDSSSzero commented 1 year ago

yeah,I have this question too. This behavior is not consistent with the auto_size_text