TF-3181 Display contact support button on mobile app
(cherry picked from commit 01d2a9b71d937930be6ae247996a3ee1e21a5dc0)
This commit is contained in:
@@ -80,10 +80,52 @@ class MailboxView extends BaseMailboxView {
|
||||
}),
|
||||
]),
|
||||
),
|
||||
Obx(() => !controller.isSelectionEnabled()
|
||||
? const QuotasView()
|
||||
: const SizedBox.shrink(),
|
||||
),
|
||||
Obx(() {
|
||||
if (controller.isSelectionEnabled()) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Divider(color: AppColor.colorDividerHorizontal),
|
||||
if (controller.contactSupportCapability == null)
|
||||
const QuotasView()
|
||||
else
|
||||
Row(
|
||||
children: [
|
||||
const Expanded(child: QuotasView()),
|
||||
Expanded(
|
||||
child: TMailButtonWidget(
|
||||
text: AppLocalizations.of(context).getHelpOrReportABug,
|
||||
icon: controller.imagePaths.icHelp,
|
||||
verticalDirection: true,
|
||||
backgroundColor: Colors.transparent,
|
||||
maxLines: 2,
|
||||
flexibleText: true,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
margin: const EdgeInsetsDirectional.only(
|
||||
end: 12,
|
||||
start: 4,
|
||||
top: 6,
|
||||
bottom: 6,
|
||||
),
|
||||
borderRadius: 10,
|
||||
textOverflow: TextOverflow.ellipsis,
|
||||
textAlign: TextAlign.center,
|
||||
textStyle: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColor.primaryColor,
|
||||
),
|
||||
onTapActionCallback: () {},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
);
|
||||
}),
|
||||
Obx(() {
|
||||
if (!controller.isSelectionEnabled() && controller.responsiveUtils.isPortraitMobile(context)) {
|
||||
return Container(
|
||||
|
||||
Reference in New Issue
Block a user