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

Controller parameter is not null-safe #45

Open MrLepage opened 1 year ago

MrLepage commented 1 year ago

The documentation on the controller parameter says that If null, this widget will create its own [TextEditingController] but it is not the case.

If a null controller is provided, it is force casted to its non-nullable type in the initState which lead to an Exception.