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
|
||||
|
||||
@@ -81,4 +81,6 @@
|
||||
<string name="sound">Sound</string>
|
||||
<string name="dnd">Do Not Disturb</string>
|
||||
<string name="dnd_desc">Turn on DND when running a Focus timer</string>
|
||||
<string name="app_name_plus">Tomato+</string>
|
||||
<string name="get_plus">Get Tomato+</string>
|
||||
</resources>
|
||||
@@ -37,8 +37,7 @@ fun TomatoPlusPaywallDialog(
|
||||
onDismiss: () -> Unit
|
||||
) {
|
||||
val paywallOptions = remember {
|
||||
PaywallOptions.Builder(dismissRequest = onDismiss)
|
||||
.build()
|
||||
PaywallOptions.Builder(dismissRequest = onDismiss).build()
|
||||
}
|
||||
|
||||
Scaffold { innerPadding ->
|
||||
|
||||
0
app/src/play/res/font/roboto_flex.ttf
Normal file
0
app/src/play/res/font/roboto_flex.ttf
Normal file
Reference in New Issue
Block a user