Fixed chatTextfield automatically expanding on multiline texts
This commit is contained in:
@ -49,8 +49,6 @@ class _ChatTextfieldState extends State<ChatTextfield> {
|
||||
shareType: 10,
|
||||
shareWith: widget.sendToToken,
|
||||
path: "$shareFolder/$filename",
|
||||
//referenceId: "eae2d4497f0e1ffa1c71e6d86f7a59a43fd49198e799cc08a8a0fa8205b99969",
|
||||
//talkMetaData: "{\"messageType\":\"\"}"
|
||||
)).then((value) => _query());
|
||||
},
|
||||
), barrierDismissible: false);
|
||||
@ -63,8 +61,7 @@ class _ChatTextfieldState extends State<ChatTextfield> {
|
||||
Align(
|
||||
alignment: Alignment.bottomLeft,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.only(left: 10, bottom: 10, top: 10),
|
||||
height: 60,
|
||||
padding: const EdgeInsets.only(left: 10, bottom: 1, top: 1, right: 10),
|
||||
width: double.infinity,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
child: Row(
|
||||
@ -117,7 +114,8 @@ class _ChatTextfieldState extends State<ChatTextfield> {
|
||||
child: TextField(
|
||||
controller: _textBoxController,
|
||||
readOnly: sending,
|
||||
maxLines: 10,
|
||||
maxLines: 7,
|
||||
minLines: 1,
|
||||
decoration: InputDecoration(
|
||||
hintText: "Nachricht schreiben...",
|
||||
hintStyle: TextStyle(color: Theme.of(context).colorScheme.onSecondary),
|
||||
@ -127,6 +125,7 @@ class _ChatTextfieldState extends State<ChatTextfield> {
|
||||
),
|
||||
const SizedBox(width: 15),
|
||||
FloatingActionButton(
|
||||
mini: true,
|
||||
onPressed: (){
|
||||
if(_textBoxController.text.isEmpty) return;
|
||||
setState(() {
|
||||
@ -145,7 +144,6 @@ class _ChatTextfieldState extends State<ChatTextfield> {
|
||||
child: const Icon(Icons.send, color: Colors.white, size: 18),
|
||||
),
|
||||
],
|
||||
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user