update button to use proper icons

This commit is contained in:
julian 2023-01-06 17:40:15 -06:00
parent e8ef0be977
commit 5a77efe5f8

View file

@ -276,16 +276,16 @@ class _PaynymFollowToggleButtonState
case PaynymFollowToggleButtonStyle.detailsPopup: case PaynymFollowToggleButtonStyle.detailsPopup:
return SecondaryButton( return SecondaryButton(
label: isFollowing ? "- Unfollow" : "+ Follow", label: isFollowing ? "Unfollow" : "Follow",
buttonHeight: ButtonHeight.l, buttonHeight: ButtonHeight.l,
icon: SvgPicture.asset( icon: SvgPicture.asset(
Assets.svg.user, isFollowing ? Assets.svg.userMinus : Assets.svg.userPlus,
width: 10, width: 10,
height: 10, height: 10,
color: color:
Theme.of(context).extension<StackColors>()!.buttonTextSecondary, Theme.of(context).extension<StackColors>()!.buttonTextSecondary,
), ),
iconSpacing: 0, iconSpacing: 4,
onPressed: _onPressed, onPressed: _onPressed,
); );
} }