From 2c8d523f327db438af816326bcba7021ffb43acc Mon Sep 17 00:00:00 2001 From: Freek van de Ven Date: Fri, 17 May 2024 14:38:13 +0200 Subject: [PATCH] fix: set the optional maxLength on the default inputfield for post titles --- CHANGELOG.md | 1 + .../lib/src/screens/timeline_post_creation_screen.dart | 1 + 2 files changed, 2 insertions(+) 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(