From 2623167aca5c023a96c6e82f37957e8cb82f987b Mon Sep 17 00:00:00 2001 From: Georgi Stanev Date: Fri, 15 Oct 2021 10:02:06 +0300 Subject: [PATCH 1/3] Making maxLines nullable to be compatible with https://api.flutter.dev/flutter/cupertino/CupertinoTextField/maxLines.html - minLines and maxLines must be null when expands is true --- lib/src/mention_view.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/mention_view.dart b/lib/src/mention_view.dart index ec8be89..f40c257 100644 --- a/lib/src/mention_view.dart +++ b/lib/src/mention_view.dart @@ -142,7 +142,7 @@ class FlutterMentions extends StatefulWidget { final bool enableSuggestions; /// {@macro flutter.widgets.editableText.maxLines} - final int maxLines; + final int? maxLines; /// {@macro flutter.widgets.editableText.minLines} final int? minLines; From 78f09f2ed39949ac02ca73c51dbaab15f5ac0a98 Mon Sep 17 00:00:00 2001 From: Georgi Stanev <32831935+StanevPrime@users.noreply.github.com> Date: Fri, 15 Oct 2021 10:02:43 +0300 Subject: [PATCH 2/3] Update pubspec.yaml --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 29556c3..b7eeab5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_mentions description: A simple flutter input widget to add @ mentions functionality to your app. -version: 2.0.1 +version: 2.0.2 homepage: https://github.com/fayeed/flutter_mentions environment: From 83bda696d8846716b94214353d828ea04242d4cd Mon Sep 17 00:00:00 2001 From: Georgi Stanev <32831935+StanevPrime@users.noreply.github.com> Date: Fri, 15 Oct 2021 10:05:13 +0300 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5267395..cd6247e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [2.0.2] 15 Oct 2021 +- `FlutterMentions.maxLines` is now nullable to be compatible with (TextField.maxLines)[https://api.flutter.dev/flutter/cupertino/CupertinoTextField/maxLines.html] + ## [2.0.1] - 24 May 2021 - Added support for Flutter 2.2.0