Skip to content

Commit

Permalink
Excluding @Preview annotations from tagged snippets.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeroseman committed Aug 21, 2023
1 parent 91c69c5 commit 64cb53a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ fun CardExamples() {
}
}

// [START android_compose_components_customcard]

@OptIn(ExperimentalMaterial3Api::class)
// [START android_compose_components_customcard]
@Composable
fun CustomCardExample(event: () -> Unit) {
Card(
Expand All @@ -82,8 +83,8 @@ fun CustomCardExample(event: () -> Unit) {
}
// [END android_compose_components_customcard]

// [START android_compose_components_elevatedcard]
@Preview
// [START android_compose_components_elevatedcard]
@Composable
fun ElevatedCardExample() {
ElevatedCard(
Expand All @@ -103,8 +104,8 @@ fun ElevatedCardExample() {
}
// [END android_compose_components_elevatedcard]

// [START android_compose_components_filledcard]
@Preview
// [START android_compose_components_filledcard]
@Composable
fun FilledCardExample() {
Card(
Expand All @@ -124,8 +125,8 @@ fun FilledCardExample() {
}
// [END android_compose_components_filledcard]

// [START android_compose_components_outlinedcard]
@Preview
// [START android_compose_components_outlinedcard]
@Composable
fun OutlinedCardExample() {
OutlinedCard(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ fun ProgressIndicatorExamples() {
}
}

@Preview
// [START android_compose_components_determinateindicator]
@Composable
fun LinearDeterminateIndicator() {
Expand Down Expand Up @@ -97,6 +98,7 @@ suspend fun loadProgress(updateProgress: (Float) -> Unit) {
}
// [END android_compose_components_determinateindicator]

@Preview
@Composable
fun CircularDeterminateIndicator() {
var currentProgress by remember { mutableStateOf(0f) }
Expand Down Expand Up @@ -125,6 +127,7 @@ fun CircularDeterminateIndicator() {
}
}

@Preview
@Composable
fun IndeterminateLinearIndicator() {
var loading by remember { mutableStateOf(false) }
Expand All @@ -141,8 +144,8 @@ fun IndeterminateLinearIndicator() {
)
}

// [START android_compose_components_indeterminateindicator]
@Preview
// [START android_compose_components_indeterminateindicator]
@Composable
fun IndeterminateCircularIndicator() {
var loading by remember { mutableStateOf(false) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp

// [START android_compose_components_scaffold]
@OptIn(ExperimentalMaterial3Api::class)
@Preview
// [START android_compose_components_scaffold]
@Composable
fun ScaffoldExample() {
var presses by remember { mutableIntStateOf(0) }
Expand Down

0 comments on commit 64cb53a

Please sign in to comment.