Skip to content

Commit

Permalink
fixup! TW-1923: Update padding for back icon in chat search
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev committed Dec 4, 2024
1 parent b8ebcd3 commit 7ccd42b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
9 changes: 0 additions & 9 deletions lib/pages/chat_search/chat_search_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import 'package:flutter/material.dart';
class ChatSearchStyle {
static ResponsiveUtils responsive = getIt.get<ResponsiveUtils>();

static double toolbarHeight(BuildContext context) =>
responsive.isMobile(context) ? 64 : 72;

static const EdgeInsetsGeometry inputPadding =
EdgeInsetsDirectional.only(start: 8, top: 16, bottom: 16, end: 16);

Expand All @@ -20,12 +17,6 @@ class ChatSearchStyle {
static const EdgeInsetsGeometry avatarPadding =
EdgeInsetsDirectional.symmetric(horizontal: 8, vertical: 16);

static EdgeInsetsGeometry searchAppBarPadding(BuildContext context) =>
EdgeInsetsDirectional.only(
top: responsive.isMobile(context) ? 0 : 16.0,
start: 8,
);

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

static const double emptyGap = 128.0;
Expand Down
8 changes: 3 additions & 5 deletions lib/pages/chat_search/chat_search_view.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:collection/collection.dart';
import 'package:fluffychat/app_state/success.dart';
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/domain/app_state/room/timeline_search_event_state.dart';
import 'package:fluffychat/pages/chat/chat_view_style.dart';
import 'package:fluffychat/pages/chat/events/message_download_content.dart';
Expand Down Expand Up @@ -42,13 +43,10 @@ class ChatSearchView extends StatelessWidget {
return Scaffold(
backgroundColor: LinagoraSysColors.material().onPrimary,
appBar: AppBar(
toolbarHeight: ChatSearchStyle.toolbarHeight(context),
toolbarHeight: AppConfig.toolbarHeight(context),
backgroundColor: LinagoraSysColors.material().onPrimary,
automaticallyImplyLeading: false,
title: Padding(
padding: ChatSearchStyle.searchAppBarPadding(context),
child: _ChatSearchAppBar(controller),
),
title: _ChatSearchAppBar(controller),
),
body: controller.sameTypeEventsBuilderController != null
? _TimelineSearchView(
Expand Down

0 comments on commit 7ccd42b

Please sign in to comment.