TF-852 Fix scroll list recipient in forwarding

This commit is contained in:
dab246
2022-08-25 18:24:47 +07:00
committed by Dat H. Pham
parent cbf3605a16
commit 1f581c6e84
2 changed files with 30 additions and 30 deletions
@@ -22,17 +22,19 @@ class ForwardView extends GetWidget<ForwardController> with AppLoaderMixin {
body: Container(
width: double.infinity,
margin: SettingsUtils.getMarginViewForSettingDetails(context, _responsiveUtils),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ForwardHeaderWidget(
imagePaths: _imagePaths,
responsiveUtils: _responsiveUtils,
),
SizedBox(height: _responsiveUtils.isWebDesktop(context) ? 24 : 16),
_buildLoadingView(),
Expanded(child: ListEmailForwardsWidget())
],
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ForwardHeaderWidget(
imagePaths: _imagePaths,
responsiveUtils: _responsiveUtils,
),
SizedBox(height: _responsiveUtils.isWebDesktop(context) ? 24 : 16),
_buildLoadingView(),
ListEmailForwardsWidget()
],
),
),
),
);
@@ -84,25 +84,23 @@ class ListEmailForwardsWidget extends GetWidget<ForwardController> {
height: 1,
thickness: 0.2,
),
Expanded(
child: Obx(() {
return ListView.separated(
shrinkWrap: true,
itemCount: controller.listRecipientForward.length,
itemBuilder: (context, index) {
final recipientForward = controller.listRecipientForward[index];
return EmailForwardItemWidget(
recipientForward: recipientForward,
selectionMode: controller.selectionMode.value);
},
separatorBuilder: (context, index) => const Divider(
color: AppColor.lineItemListColor,
height: 1,
thickness: 0.2,
),
);
}),
),
Obx(() {
return ListView.separated(
shrinkWrap: true,
itemCount: controller.listRecipientForward.length,
itemBuilder: (context, index) {
final recipientForward = controller.listRecipientForward[index];
return EmailForwardItemWidget(
recipientForward: recipientForward,
selectionMode: controller.selectionMode.value);
},
separatorBuilder: (context, index) => const Divider(
color: AppColor.lineItemListColor,
height: 1,
thickness: 0.2,
),
);
}),
]),
),
);