Skip to content

Commit

Permalink
hotfix: padding in new group
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian KOUNE authored and hoangdat committed Jan 17, 2024
1 parent 2ddd0f9 commit ba159d6
Showing 1 changed file with 30 additions and 35 deletions.
65 changes: 30 additions & 35 deletions lib/pages/new_private_chat/new_private_chat_view.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:fluffychat/pages/new_group/contacts_selection_view_style.dart';
import 'package:fluffychat/pages/new_private_chat/new_private_chat.dart';
import 'package:fluffychat/pages/new_private_chat/widget/expansion_list.dart';
import 'package:fluffychat/utils/platform_infos.dart';
Expand All @@ -15,41 +14,37 @@ class NewPrivateChatView extends StatelessWidget {

@override
Widget build(BuildContext context) {
return Padding(
padding: ContactsSelectionViewStyle.parentPadding,
child: Scaffold(
backgroundColor: LinagoraSysColors.material().onPrimary,
appBar: PreferredSize(
preferredSize: SearchableAppBarStyle.preferredSize(context),
child: SearchableAppBar(
title: L10n.of(context)!.newChat,
searchModeNotifier: controller.isSearchModeNotifier,
textEditingController: controller.textEditingController,
openSearchBar: controller.openSearchBar,
closeSearchBar: controller.closeSearchBar,
focusNode: controller.searchFocusNode,
),
return Scaffold(
backgroundColor: LinagoraSysColors.material().onPrimary,
appBar: PreferredSize(
preferredSize: SearchableAppBarStyle.preferredSize(context),
child: SearchableAppBar(
title: L10n.of(context)!.newChat,
searchModeNotifier: controller.isSearchModeNotifier,
textEditingController: controller.textEditingController,
openSearchBar: controller.openSearchBar,
closeSearchBar: controller.closeSearchBar,
focusNode: controller.searchFocusNode,
),
body: SingleChildScrollView(
keyboardDismissBehavior: PlatformInfos.isMobile
? ScrollViewKeyboardDismissBehavior.manual
: ScrollViewKeyboardDismissBehavior.onDrag,
padding: const EdgeInsets.only(left: 8.0, right: 10.0),
controller: controller.scrollController,
child: ExpansionList(
presentationContactsNotifier:
controller.presentationContactNotifier,
goToNewGroupChat: () => controller.goToNewGroupChat(context),
isShowContactsNotifier: controller.isShowContactsNotifier,
onContactTap: controller.onContactAction,
onExternalContactTap: controller.onExternalContactAction,
toggleContactsList: controller.toggleContactsList,
textEditingController: controller.textEditingController,
warningBannerNotifier: controller.warningBannerNotifier,
closeContactsWarningBanner: controller.closeContactsWarningBanner,
goToSettingsForPermissionActions:
controller.goToSettingsForPermissionActions,
),
),
body: SingleChildScrollView(
keyboardDismissBehavior: PlatformInfos.isMobile
? ScrollViewKeyboardDismissBehavior.manual
: ScrollViewKeyboardDismissBehavior.onDrag,
padding: const EdgeInsets.only(left: 8.0, right: 10.0),
controller: controller.scrollController,
child: ExpansionList(
presentationContactsNotifier: controller.presentationContactNotifier,
goToNewGroupChat: () => controller.goToNewGroupChat(context),
isShowContactsNotifier: controller.isShowContactsNotifier,
onContactTap: controller.onContactAction,
onExternalContactTap: controller.onExternalContactAction,
toggleContactsList: controller.toggleContactsList,
textEditingController: controller.textEditingController,
warningBannerNotifier: controller.warningBannerNotifier,
closeContactsWarningBanner: controller.closeContactsWarningBanner,
goToSettingsForPermissionActions:
controller.goToSettingsForPermissionActions,
),
),
);
Expand Down

0 comments on commit ba159d6

Please sign in to comment.