TF-1548: Hide all text when list forward is empty
(cherry picked from commit b931a94805167e6f53028e5677ef1f650bbf6ebf)
This commit is contained in:
@@ -80,13 +80,13 @@ class ForwardView extends GetWidget<ForwardController> with AppLoaderMixin {
|
||||
}
|
||||
|
||||
Widget _buildKeepLocalSwitchButton(BuildContext context) {
|
||||
return Container(
|
||||
return Obx(() {
|
||||
return controller.listRecipientForward.isNotEmpty
|
||||
? Container(
|
||||
color: Colors.transparent,
|
||||
padding: SettingsUtils.getPaddingKeepLocalSwitchButtonForwarding(context, _responsiveUtils),
|
||||
child: Row(children: [
|
||||
Obx(() {
|
||||
return controller.listRecipientForward.isNotEmpty
|
||||
? Padding(
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 16),
|
||||
child: InkWell(
|
||||
onTap: controller.handleEditLocalCopy,
|
||||
@@ -96,9 +96,7 @@ class ForwardView extends GetWidget<ForwardController> with AppLoaderMixin {
|
||||
: _imagePaths.icSwitchOff,
|
||||
fit: BoxFit.fill,
|
||||
width: 36,
|
||||
height: 24)))
|
||||
: const SizedBox();
|
||||
}),
|
||||
height: 24))),
|
||||
Expanded(
|
||||
child: Text(
|
||||
AppLocalizations.of(context).keepLocalCopyForwardLabel,
|
||||
@@ -110,8 +108,10 @@ class ForwardView extends GetWidget<ForwardController> with AppLoaderMixin {
|
||||
color: Colors.black)
|
||||
),
|
||||
)
|
||||
]),
|
||||
);
|
||||
]))
|
||||
: const SizedBox();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Widget _buildLoadingView() {
|
||||
|
||||
Reference in New Issue
Block a user