Skip to content

Commit

Permalink
TW-1202: Update appbar size for new group chat and new chat
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev authored and hoangdat committed Jan 15, 2024
1 parent ecf7632 commit 0064339
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pages/new_group/contacts_selection_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ContactsSelectionView extends StatelessWidget {
backgroundColor: LinagoraSysColors.material().onPrimary,
appBar: PreferredSize(
preferredSize: controller.isFullScreen
? SearchableAppBarStyle.preferredSize(context)
? ContactsSelectionViewStyle.preferredSize(context)
: SearchableAppBarStyle.maxPreferredSize(context),
child: SearchableAppBar(
focusNode: controller.searchFocusNode,
Expand Down
5 changes: 5 additions & 0 deletions lib/pages/new_group/contacts_selection_view_style.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:fluffychat/config/app_config.dart';
import 'package:flutter/widgets.dart';

class ContactsSelectionViewStyle {
Expand All @@ -10,6 +11,10 @@ class ContactsSelectionViewStyle {
static EdgeInsets parentPadding =
const EdgeInsets.symmetric(horizontal: 12.0);

static Size preferredSize(BuildContext context) => Size.fromHeight(
AppConfig.toolbarHeight(context),
);

static EdgeInsetsDirectional webActionsButtonPadding =
const EdgeInsetsDirectional.symmetric(
horizontal: 16.0,
Expand Down
1 change: 0 additions & 1 deletion lib/widgets/app_bars/searchable_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class SearchableAppBar extends StatelessWidget {
Widget build(BuildContext context) {
return AppBar(
automaticallyImplyLeading: false,
toolbarHeight: SearchableAppBarStyle.maxToolbarHeight(context),
bottom: PreferredSize(
preferredSize: const Size(double.infinity, 4),
child: Container(
Expand Down

0 comments on commit 0064339

Please sign in to comment.