TF-1899 Hide add recipient button in forward when no network

(cherry picked from commit e60297d84c17be06a2c2e7be3b034c5d6415cca3)
This commit is contained in:
dab246
2023-06-07 15:48:18 +07:00
committed by Dat Vu
parent c1ccf43763
commit cada3c2607
5 changed files with 7 additions and 12 deletions
@@ -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) {
@@ -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
)