fix: set the optional maxLength on the default inputfield for post titles

This commit is contained in:
Freek van de Ven 2024-05-17 14:38:13 +02:00
parent 8d13e4af27
commit 2c8d523f32
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@
- Add a listHeaderBuilder for showing a header at the top of the list of posts in the timeline - Add a listHeaderBuilder for showing a header at the top of the list of posts in the timeline
- Add a getUserId function to retrieve the userId when needed in the userstory configuration - Add a getUserId function to retrieve the userId when needed in the userstory configuration
- Fix the timelinecategory selection by removing the categories with key null - Fix the timelinecategory selection by removing the categories with key null
- Set an optional max length on the default post title input field
## 3.0.1 ## 3.0.1

View file

@ -140,6 +140,7 @@ class _TimelinePostCreationScreenState
'', '',
) ?? ) ??
TextField( TextField(
maxLength: widget.options.maxTitleLength,
controller: titleController, controller: titleController,
decoration: widget.options.contentInputDecoration ?? decoration: widget.options.contentInputDecoration ??
InputDecoration( InputDecoration(