Unable to use expands method on NikuTextField
Closed this issue · 0 comments
y-pakorn commented
expands
method on nikuTextField
will throw assertion error when ran because maxLines
and minLines
property can't be set to null
.
When build this
NikuTextField("yoyo")
.expands()
.niku()
.height(200)
.width(200),
will throws
The following assertion was thrown building Builder(dirty):
Assertion failed:
!expands || (maxLines == null && minLines == null)
"minLines and maxLines must be null when expands is true."
...
So, The expected property would be,
NikuTextField("yoyo")
.maxLines(null) // currently not nullable
.minLines(null) // currently not nullable
.expands()
.niku()
.height(200)
.width(200),