Skip to content

Commit

Permalink
TW-1923: Add padding at the top of search in chat
Browse files Browse the repository at this point in the history
  • Loading branch information
hieutbui authored and nqhhdev committed Nov 25, 2024
1 parent 6439e21 commit 15a1651
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/pages/chat_search/chat_search_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class ChatSearchStyle {
static const EdgeInsetsGeometry avatarPadding =
EdgeInsetsDirectional.symmetric(horizontal: 8, vertical: 16);

static const EdgeInsetsGeometry searchAppBarPadding =
EdgeInsetsDirectional.only(top: 16.0);

static const EdgeInsetsGeometry emptyPadding = EdgeInsetsDirectional.all(16);

static const double emptyGap = 128.0;
Expand Down
5 changes: 4 additions & 1 deletion lib/pages/chat_search/chat_search_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ class ChatSearchView extends StatelessWidget {
toolbarHeight: AppConfig.toolbarHeight(context),
backgroundColor: LinagoraSysColors.material().onPrimary,
automaticallyImplyLeading: false,
title: _ChatSearchAppBar(controller),
title: Padding(
padding: ChatSearchStyle.searchAppBarPadding,
child: _ChatSearchAppBar(controller),
),
),
body: controller.sameTypeEventsBuilderController != null
? _TimelineSearchView(
Expand Down

0 comments on commit 15a1651

Please sign in to comment.