From 1aa589ddd19e6d27d474d638fb15fbcb86180731 Mon Sep 17 00:00:00 2001 From: Kelrap Date: Thu, 30 May 2024 12:39:17 -0400 Subject: [PATCH] Allow multiline topic input --- lib/pangea/utils/set_class_topic.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pangea/utils/set_class_topic.dart b/lib/pangea/utils/set_class_topic.dart index 67610c0cad..91625af424 100644 --- a/lib/pangea/utils/set_class_topic.dart +++ b/lib/pangea/utils/set_class_topic.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; - import 'package:flutter_gen/gen_l10n/l10n.dart'; import 'package:future_loading_dialog/future_loading_dialog.dart'; import 'package:matrix/matrix.dart'; @@ -18,6 +17,10 @@ void setClassTopic(Room room, BuildContext context) { ), content: TextField( controller: textFieldController, + keyboardType: TextInputType.multiline, + minLines: 1, + maxLines: 10, + maxLength: 2000, ), actions: [ TextButton(