diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fd622a..479f846 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - 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 - 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 diff --git a/packages/flutter_timeline_view/lib/src/screens/timeline_post_creation_screen.dart b/packages/flutter_timeline_view/lib/src/screens/timeline_post_creation_screen.dart index 2623912..b71a6d9 100644 --- a/packages/flutter_timeline_view/lib/src/screens/timeline_post_creation_screen.dart +++ b/packages/flutter_timeline_view/lib/src/screens/timeline_post_creation_screen.dart @@ -140,6 +140,7 @@ class _TimelinePostCreationScreenState '', ) ?? TextField( + maxLength: widget.options.maxTitleLength, controller: titleController, decoration: widget.options.contentInputDecoration ?? InputDecoration(