Reading the length-constraint on a TextColumn #2974
-
Hey there,
In my real-life application there are around 100 columns in that table and some of them have different LengthConstraints because of the backend-database. To not manage all the changes with every TextField independently I created a custom TextForm-Widget that takes the column as an input and handles the data-writes and listens on the database based on that input column. All that is working perfectly. Now i would like to give that TextFormField a maxLength according to the input-column. thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Unfortunately, this information is not exposed in a way that would make it possible to efficiently query the min/max length. Drift just generates a validation function, but you won't get anything more than that callback. |
Beta Was this translation helpful? Give feedback.
Unfortunately, this information is not exposed in a way that would make it possible to efficiently query the min/max length. Drift just generates a validation function, but you won't get anything more than that callback.