TF-1899 Hide add recipient button in forward when no network
(cherry picked from commit e60297d84c17be06a2c2e7be3b034c5d6415cca3)
This commit is contained in:
@@ -18,7 +18,6 @@ class MaterialTextIconButton extends StatelessWidget {
|
||||
final Color? iconColor;
|
||||
final Color? backgroundColor;
|
||||
final TextStyle? labelStyle;
|
||||
final EdgeInsets? padding;
|
||||
|
||||
const MaterialTextIconButton({
|
||||
Key? key,
|
||||
@@ -31,7 +30,6 @@ class MaterialTextIconButton extends StatelessWidget {
|
||||
this.labelColor,
|
||||
this.iconColor,
|
||||
this.backgroundColor,
|
||||
this.padding,
|
||||
this.labelStyle,
|
||||
this.minimumSize
|
||||
}) : super(key: key);
|
||||
@@ -59,9 +57,8 @@ class MaterialTextIconButton extends StatelessWidget {
|
||||
foregroundColor: labelColor ?? AppColor.colorTextButton,
|
||||
backgroundColor: backgroundColor ?? AppColor.colorCreateNewIdentityButton,
|
||||
elevation: 0,
|
||||
padding: padding,
|
||||
minimumSize: minimumSize,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(borderRadius)),
|
||||
minimumSize: minimumSize
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
+2
-2
@@ -7,6 +7,7 @@ import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/app_logger.dart';
|
||||
import 'package:core/utils/build_utils.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email_address.dart';
|
||||
@@ -272,8 +273,7 @@ class _AutocompleteContactTextFieldWithTagsState extends State<AutocompleteConta
|
||||
backgroundColor: AppColor.colorTextButton,
|
||||
labelColor: Colors.white,
|
||||
iconColor: Colors.white,
|
||||
minimumSize: Size(maxWidth ?? 167, 54),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 20),
|
||||
minimumSize: Size(maxWidth ?? 167, PlatformInfo.isMobile ? 44 : 54),
|
||||
onTap: _handleAddRecipientAction
|
||||
);
|
||||
}
|
||||
|
||||
-4
@@ -81,10 +81,6 @@ class ForwardRecipientController {
|
||||
}
|
||||
}
|
||||
|
||||
void updateListRecipient(List<EmailAddress> listEmailAddress) {
|
||||
listRecipients.value = listEmailAddress;
|
||||
}
|
||||
|
||||
void clearAll() {
|
||||
inputRecipientController.clear();
|
||||
listRecipients.clear();
|
||||
|
||||
@@ -44,7 +44,10 @@ class ForwardView extends GetWidget<ForwardController> with AppLoaderMixin {
|
||||
if (!_responsiveUtils.isWebDesktop(context))
|
||||
_buildTitleHeader(context),
|
||||
_buildKeepLocalSwitchButton(context),
|
||||
_buildAddRecipientsFormWidget(context),
|
||||
Obx(() => controller.currentForward.value != null
|
||||
? _buildAddRecipientsFormWidget(context)
|
||||
: const SizedBox.shrink()
|
||||
),
|
||||
_buildLoadingView(),
|
||||
Obx(() {
|
||||
if (controller.listRecipientForward.isNotEmpty) {
|
||||
|
||||
-1
@@ -42,7 +42,6 @@ class IdentitiesHeaderWidget extends StatelessWidget {
|
||||
label: AppLocalizations.of(context).createNewIdentity,
|
||||
icon: imagePaths.icAddIdentity,
|
||||
iconSize: 28,
|
||||
padding: const EdgeInsets.all(16),
|
||||
minimumSize: const Size(double.infinity, 44),
|
||||
onTap: onAddNewIdentityAction
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user