TF-551 Fix mailbox scrollbar jumps and resizes on mobile
This commit is contained in:
@@ -205,13 +205,12 @@ class MailboxView extends GetWidget<MailboxController> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildListMailbox(BuildContext context) {
|
Widget _buildListMailbox(BuildContext context) {
|
||||||
return ListView(
|
return SingleChildScrollView(
|
||||||
controller: controller.mailboxListScrollController,
|
controller: controller.mailboxListScrollController,
|
||||||
key: const PageStorageKey('mailbox_list'),
|
key: const PageStorageKey('mailbox_list'),
|
||||||
primary: false,
|
physics: const ClampingScrollPhysics(),
|
||||||
shrinkWrap: true,
|
|
||||||
padding: EdgeInsets.only(bottom: controller.isSelectionEnabled() ? 16 : 0),
|
padding: EdgeInsets.only(bottom: controller.isSelectionEnabled() ? 16 : 0),
|
||||||
children: [
|
child: Column(children: [
|
||||||
Obx(() {
|
Obx(() {
|
||||||
if ((controller.isSelectionEnabled() && _responsiveUtils.isLandscapeMobile(context))
|
if ((controller.isSelectionEnabled() && _responsiveUtils.isLandscapeMobile(context))
|
||||||
|| (BuildUtils.isWeb && _responsiveUtils.isDesktop(context))) {
|
|| (BuildUtils.isWeb && _responsiveUtils.isDesktop(context))) {
|
||||||
@@ -220,16 +219,16 @@ class MailboxView extends GetWidget<MailboxController> {
|
|||||||
return _buildUserInformation(context);
|
return _buildUserInformation(context);
|
||||||
}),
|
}),
|
||||||
if ((BuildUtils.isWeb && !_responsiveUtils.isDesktop(context))
|
if ((BuildUtils.isWeb && !_responsiveUtils.isDesktop(context))
|
||||||
|| !BuildUtils.isWeb) _buildSearchBarWidget(context),
|
|| !BuildUtils.isWeb) _buildSearchBarWidget(context),
|
||||||
_buildLoadingView(),
|
_buildLoadingView(),
|
||||||
Obx(() => controller.defaultMailboxTree.value.root.childrenItems?.isNotEmpty ?? false
|
Obx(() => controller.defaultMailboxTree.value.root.childrenItems?.isNotEmpty ?? false
|
||||||
? _buildMailboxCategory(context, MailboxCategories.exchange, controller.defaultMailboxTree.value.root)
|
? _buildMailboxCategory(context, MailboxCategories.exchange, controller.defaultMailboxTree.value.root)
|
||||||
: const SizedBox.shrink()),
|
: const SizedBox.shrink()),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
Obx(() => controller.folderMailboxTree.value.root.childrenItems?.isNotEmpty ?? false
|
Obx(() => controller.folderMailboxTree.value.root.childrenItems?.isNotEmpty ?? false
|
||||||
? _buildMailboxCategory(context, MailboxCategories.folders, controller.folderMailboxTree.value.root)
|
? _buildMailboxCategory(context, MailboxCategories.folders, controller.folderMailboxTree.value.root)
|
||||||
: const SizedBox.shrink()),
|
: const SizedBox.shrink()),
|
||||||
]
|
])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user