From eca25de50b4b82d2cef6587f55bb427a2319599f Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 20 Sep 2020 19:20:04 +0200 Subject: [PATCH] fix: Search bar --- lib/views/chat_list.dart | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/views/chat_list.dart b/lib/views/chat_list.dart index 528cae3..2313e24 100644 --- a/lib/views/chat_list.dart +++ b/lib/views/chat_list.dart @@ -300,9 +300,9 @@ class _ChatListState extends State { titleSpacing: 0, title: selectMode == SelectMode.share ? Text(L10n.of(context).share) - : Padding( - padding: - EdgeInsets.only(top: 8, bottom: 8, right: 8), + : Container( + height: 40, + padding: EdgeInsets.only(right: 8), child: Material( color: Theme.of(context).secondaryHeaderColor, borderRadius: BorderRadius.circular(32), @@ -311,9 +311,14 @@ class _ChatListState extends State { controller: searchController, focusNode: _searchFocusNode, decoration: InputDecoration( - contentPadding: EdgeInsets.symmetric( - vertical: 9, horizontal: 16), - border: InputBorder.none, + contentPadding: EdgeInsets.only( + top: 8, + bottom: 8, + left: 16, + ), + border: OutlineInputBorder( + borderRadius: BorderRadius.circular(32), + ), hintText: L10n.of(context).searchForAChat, suffixIcon: searchMode ? IconButton(