Merge pull request #1760 from Stillswarm/Stillswarm-patch-1

Use TextButton instead of Button with Clickable in Settings Dialog
pull/1761/head
Don Turner 6 days ago committed by GitHub
commit e861bcf913
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -20,7 +20,6 @@ package com.google.samples.apps.nowinandroid.feature.settings
import android.content.Intent
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
@ -141,14 +140,16 @@ fun SettingsDialog(
TrackScreenViewEvent(screenName = "Settings")
},
confirmButton = {
Text(
text = stringResource(string.feature_settings_dismiss_dialog_button_text),
style = MaterialTheme.typography.labelLarge,
color = MaterialTheme.colorScheme.primary,
modifier = Modifier
.padding(horizontal = 8.dp)
.clickable { onDismiss() },
)
NiaTextButton(
onClick = onDismiss,
modifier = Modifier.padding(horizontal = 8.dp),
) {
Text(
text = stringResource(string.feature_settings_dismiss_dialog_button_text),
style = MaterialTheme.typography.labelLarge,
color = MaterialTheme.colorScheme.primary,
)
}
},
)
}

Loading…
Cancel
Save