Skip to content

Commit

Permalink
Paywalls: polish template 2 spacing (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto authored and tonidero committed Oct 31, 2023
1 parent 3369e91 commit da84ed8
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.rememberScrollState
Expand Down Expand Up @@ -89,7 +90,18 @@ internal fun Template2(
mutableStateOf(state.templateConfiguration.mode != PaywallMode.FOOTER_CONDENSED)
}
Template2MainContent(state, viewModel, packageSelectorVisible, childModifier)

AnimatedVisibility(
visible = packageSelectorVisible,
enter = fadeIn(animationSpec = UIConstant.defaultAnimation()),
exit = fadeOut(animationSpec = UIConstant.defaultAnimation()),
label = "Template2.packageSpacig",
) {
Spacer(modifier = Modifier.height(UIConstant.defaultVerticalSpacing))
}

PurchaseButton(state, viewModel, childModifier)

Footer(
templateConfiguration = state.templateConfiguration,
viewModel = viewModel,
Expand Down

0 comments on commit da84ed8

Please sign in to comment.