TF-1548: Hide switch icon when list forward is empty
(cherry picked from commit bb97b1cdd95a75e00191d11eff452817429a7a05)
This commit is contained in:
@@ -85,18 +85,20 @@ class ForwardView extends GetWidget<ForwardController> with AppLoaderMixin {
|
|||||||
padding: SettingsUtils.getPaddingKeepLocalSwitchButtonForwarding(context, _responsiveUtils),
|
padding: SettingsUtils.getPaddingKeepLocalSwitchButtonForwarding(context, _responsiveUtils),
|
||||||
child: Row(children: [
|
child: Row(children: [
|
||||||
Obx(() {
|
Obx(() {
|
||||||
return InkWell(
|
return controller.listRecipientForward.isNotEmpty
|
||||||
onTap: controller.handleEditLocalCopy,
|
? Padding(
|
||||||
child: SvgPicture.asset(
|
padding: const EdgeInsets.only(right: 16),
|
||||||
controller.currentForwardLocalCopyState
|
child: InkWell(
|
||||||
? _imagePaths.icSwitchOn
|
onTap: controller.handleEditLocalCopy,
|
||||||
: _imagePaths.icSwitchOff,
|
child: SvgPicture.asset(
|
||||||
fit: BoxFit.fill,
|
controller.currentForwardLocalCopyState
|
||||||
width: 36,
|
? _imagePaths.icSwitchOn
|
||||||
height: 24)
|
: _imagePaths.icSwitchOff,
|
||||||
);
|
fit: BoxFit.fill,
|
||||||
|
width: 36,
|
||||||
|
height: 24)))
|
||||||
|
: const SizedBox();
|
||||||
}),
|
}),
|
||||||
const SizedBox(width: 16),
|
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
AppLocalizations.of(context).keepLocalCopyForwardLabel,
|
AppLocalizations.of(context).keepLocalCopyForwardLabel,
|
||||||
|
|||||||
Reference in New Issue
Block a user