feat(billing): add font for billing screen, add animation
This commit is contained in:
@@ -23,6 +23,8 @@ import androidx.compose.animation.Crossfade
|
||||
import androidx.compose.animation.SharedTransitionLayout
|
||||
import androidx.compose.animation.fadeIn
|
||||
import androidx.compose.animation.fadeOut
|
||||
import androidx.compose.animation.slideInVertically
|
||||
import androidx.compose.animation.slideOutVertically
|
||||
import androidx.compose.animation.togetherWith
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.calculateEndPadding
|
||||
@@ -246,5 +248,12 @@ fun AppScreen(
|
||||
)
|
||||
}
|
||||
}
|
||||
if (showPaywall) TomatoPlusPaywallDialog(isPlus = isPlus) { showPaywall = false }
|
||||
|
||||
AnimatedVisibility(
|
||||
showPaywall,
|
||||
enter = slideInVertically { it },
|
||||
exit = slideOutVertically { it }
|
||||
) {
|
||||
TomatoPlusPaywallDialog(isPlus = isPlus) { showPaywall = false }
|
||||
}
|
||||
}
|
||||
@@ -233,7 +233,7 @@ private fun SettingsScreen(
|
||||
) {
|
||||
item { Spacer(Modifier.height(12.dp)) }
|
||||
|
||||
if (!isPlus) item {
|
||||
item {
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
modifier = Modifier
|
||||
@@ -251,7 +251,8 @@ private fun SettingsScreen(
|
||||
)
|
||||
Spacer(Modifier.width(8.dp))
|
||||
Text(
|
||||
"Get Tomato+",
|
||||
if (!isPlus) stringResource(R.string.get_plus)
|
||||
else stringResource(R.string.app_name_plus),
|
||||
style = typography.titleLarge,
|
||||
fontFamily = robotoFlexTopBar,
|
||||
color = colorScheme.onPrimary
|
||||
|
||||
Reference in New Issue
Block a user