From c20ee15f60adbb380b9a37cbf70330639ffc34cb Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Mon, 26 Oct 2020 16:07:16 +0530 Subject: [PATCH] fix: attachments ui --- lib/src/message_input.dart | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index 1e0a7787..700a726f 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -254,8 +254,14 @@ class MessageInputState extends State { maxHeight: widget.maxHeight, child: Container( decoration: BoxDecoration( - borderRadius: BorderRadius.circular(8.0), - border: Border.all() + borderRadius: BorderRadius.circular(16.0), + border: Border.all( + color: _typingStarted + ? Colors.transparent + : Theme.of(context).brightness == Brightness.dark + ? Colors.white.withOpacity(.2) + : Colors.black.withOpacity(.2)), + ) ), child: Column( mainAxisSize: MainAxisSize.min, @@ -312,9 +318,11 @@ class MessageInputState extends State { decoration: InputDecoration( hintText: 'Write a message', prefixText: _commandEnabled ? null : ' ', - border: OutlineInputBorder( - borderRadius: BorderRadius.circular(32), - ), + border: InputBorder.none, + focusedBorder: InputBorder.none, + enabledBorder: InputBorder.none, + errorBorder: InputBorder.none, + disabledBorder: InputBorder.none, contentPadding: EdgeInsets.all(8), prefixIcon: _commandEnabled ? Padding(