Prerequisites and compatibility
- Current Wear OS Compose version in-use: To find the installed library version, read
gradle/libs.versions.toml or build.gradle.kts directly. Don't run ./gradlew dependencies or other shell commands to resolve versions.
- Wear OS Compose Material3 version: If an internal tool is available to establish the latest stable version
{VERSION} of androidx.wear.compose:compose-material3, use that tool.
- Strict compliance: If a version is listed as stable, you MUST use it, unless overridden by the user. Do not downgrade based on initial "Unresolved reference" errors in the editor or outdated web search results.
- Kotlin version: For Wear Compose Material3, use Kotlin 2.0.0 or
higher.
- Compose compiler:
- If Kotlin version is 2.0.0+ , the project must use the
org.jetbrains.kotlin.plugin.compose Gradle plugin.
- If Kotlin version is < 2.0.0 , the project must use
kotlinCompilerExtensionVersion in composeOptions, matching the Compose to Kotlin Compatibility Map.
- Min SDK: Ensure
minSdk is at least 25.
- Sample extraction mandate: Wear Compose libraries ship with an additional JAR file which contains individual samples for each and every component. You mustn't propose code changes, other than previews or basic changes such as color changes, until the samples in Capability 3 are extracted to the local cache. Library source files are incomplete and NOT a substitute for these samples; bypassing extraction is an environment setup failure.
Gotchas
- Mandatory sync and validation: After updating versions in
libs.versions.toml or build.gradle.kts, you must perform a Gradle sync before refactoring any code. This ensures the environment has resolved the libraries correctly.
- Prohibition of guessing (error protocol): If you encounter an 'Unresolved Reference' or API mismatch after a successful sync, do not attempt to 'fix' it by downgrading the library version.
Capabilities and tools
Capability 1: Migration
Use this guidance when migrating from an older version of Wear OS Compose or
Horologist.
- Unless otherwise indicated by the developer, use the latest stable version of Wear Compose Material3 from
{VERSION}.
- Read the migration guide.
- Use the official component mappings from the migration guide.
- Before refactoring any component (for example,
Chip -> Button), check the parameter names, slot types, and "Expressive" design tokens.
- Do not use the Horologist Composables, Compose Layout, or Compose Material libraries.
- Always check against the component guidance in Capability 4.
- Expect screenshot tests to fail when a migration has been performed: Even when migrating to very similar components, expected defaults for padding and positioning will have changed. Do not seek to artificially match the pre-migration screenshot, but give preference to the Material3 defaults.
Capability 2: Adding Wear OS Compose Material3 features or updating the app
Use this guidance when the developer asks to update a project which is using an
earlier version of Wear OS Compose Material3, or when they ask to add further
features.
- Unless otherwise indicated by the developer, use the latest stable version of Wear Compose Material3 from
{VERSION}.
- Do not use the Horologist Composables, Compose Layout, or Compose Material libraries.
- Always check against the component guidance in Capability 4.
- Expect screenshot tests to fail when a migration has been performed: Even when migrating to very similar components, expected defaults for padding and positioning will have changed. Do not seek to artificially match the pre-migration screenshot, but give preference to the Material3 defaults.
Capability 3: Component samples
Wear Compose includes individual component samples for each and every component,
within the <artifact>-<version>-samples-sources.jar file. Gradle automatically
downloads these JAR files along with the main library JAR when using any of
compose-material3, compose-foundation or compose-navigation3.
Use the canonical component samples whenever adding or adjusting a Wear Compose
Material3 component.
STRICT COMPLIANCE: Extraction is NOT optional. You are FORBIDDEN from
implementing any code until samples are extracted and read. Bypassing this step
with alternative search tools or by assuming library documentation is sufficient
is a protocol breach. You MUST verify the local cache by reading a sample file
before proceeding.
Exception: You don't need to extract samples if the request is strictly related
to tooling (for example, adding @WearPreviewDevices), updating text/colors, or
basic refactoring that doesn't involve adding new Wear Compose components.
Step 1: Prepare
- Check the
build.gradle.kts or libs.versions.toml to ensure the Wear Compose version matches {VERSION}.
- Ensure that the necessary dependencies are downloaded by doing a Gradle sync.
Step 2: Check the local cache
- Define the cache directory path:
/tmp/wear-compose-samples/{VERSION}/. Do NOT choose your own different location.
- Check if this directory exists and contains subdirectories with
.kt files.
- IF YES (cache hit): Proceed to Step 4.
- IF NO (cache miss): Proceed to Step 3.
Step 3: Network-based sample retrieval
Google Maven publishes a -samples-sources.jar alongside every library release.
Download and extract it directly without needing a local Gradle sync or cache
lookup.
Determine the {VERSION} of androidx.wear.compose:compose-material3 from build.gradle.kts or libs.versions.toml.
Define {ARTIFACT} as the items in the list ["material3", "foundation"]. Also include navigation3 if androidx.wear.compose.navigation3 is used.
For each {ARTIFACT}, run the following commands to download and extract
the samples:
# Download the samples-sources JAR
curl -sSL "https://dl.google.com/dl/android/maven2/androidx/wear/compose/compose-{ARTIFACT}/{VERSION}/compose-{ARTIFACT}-{VERSION}-samples-sources.jar" -o {ARTIFACT}-{VERSION}-samples.jar
# Extract and flatten into the cache directory
unzip -q -o {ARTIFACT}-{VERSION}-samples.jar -d /tmp/wear-compose-samples/{VERSION}/{ARTIFACT}/
# Clean up
rm {ARTIFACT}-{VERSION}-samples.jar
If this works, proceed directly to step 4.
Step 4: Read samples and implement
- Read the relevant
.kt sample files.
- Use these official, version-matched samples as the source of truth for:
- Required parameters and slot names.
- Default styling and typography tokens.
- Interactive behaviors (for example:
onClick, onLongClick).
- Component nesting (for example:
AppScaffold -> ScreenScaffold).
Capability 4: Component guidance
Mandatory: Use this capability as a checklist against any component use. It
provides more holistic guidance on how to use each component in practice, beyond
the component syntax.
AppScaffold and ScreenScaffold
- [ ] Use
AppScaffold as the outer container, with ScreenScaffold children.
- [ ] Use only ONE
AppScaffold and any number of ScreenScaffold.
ScalingLazyColumn - Use TransformingLazyColumn instead.
TransformingLazyColumn - You will need the following imports:
import androidx.wear.compose.foundation.lazy.TransformingLazyColumn
import androidx.wear.compose.foundation.lazy.TransformingLazyColumnDefaults
import androidx.wear.compose.foundation.lazy.rememberTransformingLazyColumnState
// ...
import androidx.wear.compose.material3.lazy.rememberTransformationSpec
import androidx.wear.compose.material3.lazy.transformedHeight
Canonical example:
val columnState = rememberTransformingLazyColumnState()
val transformationSpec = rememberTransformationSpec()
ScreenScaffold(
scrollState = columnState
) { contentPadding ->
TransformingLazyColumn(
state = columnState,
contentPadding = contentPadding
) {
item {
ListHeader(
modifier = Modifier
.fillMaxWidth()
.transformedHeight(this, transformationSpec)
.minimumVerticalContentPadding(ListHeaderDefaults.minimumTopListContentPadding),
transformation = SurfaceTransformation(transformationSpec)
) {
Text(text = "Header")
}
}
// ... other items
item {
Button(
modifier = Modifier
.fillMaxWidth()
.transformedHeight(this, transformationSpec)
.minimumVerticalContentPadding(ButtonDefaults.minimumVerticalListContentPadding),
transformation = SurfaceTransformation(transformationSpec),
/* ... */ },
icon = {
Icon(
imageVector = Icons.Default.Build,
contentDescription = "build",
)
},
) {
Text(
text = "Build",
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
}
}
}
}
- [ ] Use
TransformingLazyColumn instead of ScalingLazyColumn.
- [ ] You must pass the
contentPadding parameter from ScreenScaffold to the TransformingLazyColumn.
- [ ] Use the
minimumVerticalContentPadding modifier to achieve required padding top and bottom.
- This expects a value from defaults, such as
ButtonDefaults, CardDefaults, `ListHeaderDefaults.
- Note: This is a scoped modifier available within
TransformingLazyColumnItemScope.
- [ ] Ensure the list morphs and scales.
- [ ] Use
transformedHeight modifier.
- [ ] Use
transform = SurfaceTransform(...).
- [ ] If configuring a list for snapping, use
flingBehavior and rotaryScrollableBehavior together:
val columnState = rememberTransformingLazyColumnState()
ScreenScaffold(scrollState = columnState) { contentPadding ->
TransformingLazyColumn(
state = columnState,
flingBehavior = TransformingLazyColumnDefaults.snapFlingBehavior(columnState),
rotaryScrollableBehavior = RotaryScrollableDefaults.snapBehavior(columnState)
) {
// ...
// ...
}
}
ScreenScaffold
- [ ] Guard the
scrollIndicator with !LocalScrollCaptureInProgress.current.
EdgeButton
- [ ] Do NOT use as the final item within a
TransformingLazyColumn. Instead, use the slot in ScreenScaffold.
- [ ] When used in a
TransformingLazyColumn, add the required overscroll behavior:
val columnState = rememberTransformingLazyColumnState()
ScreenScaffold(
scrollState = columnState,
edgeButton = {
EdgeButton(
/* TODO */ },
modifier = Modifier.scrollable(
columnState,
orientation = Orientation.Vertical,
reverseDirection = true,
// Apply overscroll to the EdgeButton for proper scrolling behavior.
overscrollEffect = rememberOverscrollEffect(),
)
) {
Text("More")
}
}
) { contentPadding ->
TransformingLazyColumn(
contentPadding = contentPadding,
state = columnState,
) {
// ...
// ...
}
}
Column
- [ ] USE as a direct child of
ScreenScaffold if the screen is will never scroll, even with the largest system font.
- [ ] Use
TransformingLazyColumn instead for all other cases.
Styles
- [ ] Do NOT hard-code text sizes, use
typography from MaterialTheme.
- [ ] Do NOT hard-code colors, use
colorScheme from MaterialTheme.
Use component defaults:
- [ ] Components such as
Button have a corresponding ButtonDefaults object.
- [ ] Check for and use the
*Defaults object for any component when working with padding and styling values, in preference to hard-coded values.
Use Wear specific previews:
- [ ]
WearPreviewDevices
- [ ]
WearPreviewFontScales
Ambient mode
- [ ] Use
LocalAmbientModeManager instead of AmbientLifecycleObserver.
Navigation
- [ ] When adding navigation fresh, use Navigation3.
- [ ] For Navigation3 in Wear OS, use
SwipeDismissableSceneStrategy() from the Wear Compose compose-navigation3 library.
Comments
- [ ] Where any Kotlin file has been modified, ensure that the existing comments are up to date and accurately reflect any changes to the implementation.
HorizontalPager or VerticalPager
- [ ] Use the Composable hierarchy in this order:
AppScaffold, HorizontalPagerScaffold, HorizontalPager, AnimatedPage, ScreenScaffold. Or similarly for VerticalPager.
Source: android/skills → wear/wear-compose-m3/SKILL.md
1---
2name: wear-compose-m3
3description: "Expert guidance for working with Wear OS Compose Material3. Use this skill when creating, updating, or migrating Wear OS projects. This includes the androidx.wear.compose.material3, androidx.wear.compose.foundation, and androidx.wear.compose.navigation3 libraries. Also working with core components such as AppScaffold, ScreenScaffold, and TransformingLazyColumn, and core Wear OS concepts such as ambient mode. Migration from lower versions such as Material 2.5 and Horologist."
4category: engineering-core
5source_repo: android/skills
6source_path: "wear/wear-compose-m3/SKILL.md"
7source_url: https://github.com/android/skills/blob/HEAD/wear/wear-compose-m3/SKILL.md
8metadata:
9 source: https://skillmd.com/skills/thedixitjain/wear-compose-m3
10---
11
12
13## Prerequisites and compatibility
14
151. **Current Wear OS Compose version in-use:** To find the installed library version, read `gradle/libs.versions.toml` or `build.gradle.kts` directly. Don't run `./gradlew dependencies` or other shell commands to resolve versions.
162. **Wear OS Compose Material3 version:** If an internal tool is available to establish the **latest stable version** `{VERSION}` of `androidx.wear.compose:compose-material3`, use that tool.
17 - Otherwise, fetch the [official Maven metadata XML](https://dl.google.com/dl/android/maven2/androidx/wear/compose/compose-material3/maven-metadata.xml) to identify `{VERSION}` (highest number, ignoring `-alpha`, `-beta`, or `-rc`).
183. **Strict compliance:** If a version is listed as stable, you MUST use it, unless overridden by the user. Do not downgrade based on initial "Unresolved reference" errors in the editor or outdated web search results.
194. **Kotlin version:** For Wear Compose Material3, use Kotlin **2.0.0 or
20 higher**.
215. **Compose compiler:**
22 - If Kotlin version is **2.0.0+** , the project must use the `org.jetbrains.kotlin.plugin.compose` Gradle plugin.
23 - If Kotlin version is **\< 2.0.0** , the project must use `kotlinCompilerExtensionVersion` in `composeOptions`, matching the [Compose to Kotlin Compatibility Map](https://developer.android.com/jetpack/androidx/releases/compose-kotlin).
246. **Min SDK:** Ensure `minSdk` is at least **25**.
257. **Sample extraction mandate**: Wear Compose libraries ship with an additional JAR file which contains individual samples for each and every component. You mustn't propose code changes, other than previews or basic changes such as color changes, until the samples in Capability 3 are extracted to the local cache. Library source files are incomplete and NOT a substitute for these samples; bypassing extraction is an environment setup failure.
26
27## Gotchas
28
291. **Mandatory sync and validation:** After updating versions in `libs.versions.toml` or `build.gradle.kts`, you **must** perform a Gradle sync before refactoring any code. This ensures the environment has resolved the libraries correctly.
302. **Prohibition of guessing (error protocol):** If you encounter an 'Unresolved Reference' or API mismatch after a successful sync, do not attempt to 'fix' it by downgrading the library version.
31
32## Capabilities and tools
33
34### Capability 1: Migration
35
36Use this guidance when migrating from an older version of Wear OS Compose or
37Horologist.
38
391. Unless otherwise indicated by the developer, use the latest stable version of Wear Compose Material3 from `{VERSION}`.
402. Read the [migration guide](references/android/training/wearables/compose/migrate-to-material3.md).
413. Use the official component mappings from the migration guide.
424. Before refactoring any component (for example, `Chip` -\> `Button`), check the parameter names, slot types, and "Expressive" design tokens.
435. Do not use the Horologist Composables, Compose Layout, or Compose Material libraries.
446. **Always** check against the component guidance in Capability 4.
457. Expect screenshot tests to fail when a migration has been performed: Even when migrating to very similar components, expected defaults for padding and positioning will have changed. Do not seek to artificially match the pre-migration screenshot, but give preference to the Material3 defaults.
46
47### Capability 2: Adding Wear OS Compose Material3 features or updating the app
48
49Use this guidance when the developer asks to update a project which is using an
50earlier version of Wear OS Compose Material3, or when they ask to add further
51features.
52
531. Unless otherwise indicated by the developer, use the latest stable version of Wear Compose Material3 from `{VERSION}`.
542. Do not use the Horologist Composables, Compose Layout, or Compose Material libraries.
553. **Always** check against the component guidance in Capability 4.
564. Expect screenshot tests to fail when a migration has been performed: Even when migrating to very similar components, expected defaults for padding and positioning will have changed. Do not seek to artificially match the pre-migration screenshot, but give preference to the Material3 defaults.
57
58### Capability 3: Component samples
59
60Wear Compose includes individual component samples for each and every component,
61within the `<artifact>-<version>-samples-sources.jar` file. Gradle automatically
62downloads these JAR files along with the main library JAR when using any of
63`compose-material3`, `compose-foundation` or `compose-navigation3`.
64
65Use the canonical component samples whenever adding or adjusting a Wear Compose
66Material3 component.
67
68STRICT COMPLIANCE: Extraction is NOT optional. You are FORBIDDEN from
69implementing any code until samples are extracted and read. Bypassing this step
70with alternative search tools or by assuming library documentation is sufficient
71is a protocol breach. You MUST verify the local cache by reading a sample file
72before proceeding.
73
74Exception: You don't need to extract samples if the request is strictly related
75to tooling (for example, adding @WearPreviewDevices), updating text/colors, or
76basic refactoring that doesn't involve adding new Wear Compose components.
77
78#### Step 1: Prepare
79
801. Check the `build.gradle.kts` or `libs.versions.toml` to ensure the Wear Compose version matches `{VERSION}`.
812. Ensure that the necessary dependencies are downloaded by doing a Gradle sync.
82
83#### Step 2: Check the local cache
84
851. Define the cache directory path: `/tmp/wear-compose-samples/{VERSION}/`. Do NOT choose your own different location.
862. Check if this directory exists and contains subdirectories with `.kt` files.
87 - **IF YES (cache hit):** Proceed to **Step 4**.
88 - **IF NO (cache miss):** Proceed to **Step 3**.
89
90#### Step 3: Network-based sample retrieval
91
92Google Maven publishes a `-samples-sources.jar` alongside every library release.
93Download and extract it directly without needing a local Gradle sync or cache
94lookup.
95
961. Determine the `{VERSION}` of `androidx.wear.compose:compose-material3` from `build.gradle.kts` or `libs.versions.toml`.
972. Define `{ARTIFACT}` as the items in the list `["material3", "foundation"]`. Also include `navigation3` if `androidx.wear.compose.navigation3` is used.
983. For each `{ARTIFACT}`, run the following commands to download and extract
99 the samples:
100
101 # Download the samples-sources JAR
102 curl -sSL "https://dl.google.com/dl/android/maven2/androidx/wear/compose/compose-{ARTIFACT}/{VERSION}/compose-{ARTIFACT}-{VERSION}-samples-sources.jar" -o {ARTIFACT}-{VERSION}-samples.jar
103
104 # Extract and flatten into the cache directory
105 unzip -q -o {ARTIFACT}-{VERSION}-samples.jar -d /tmp/wear-compose-samples/{VERSION}/{ARTIFACT}/
106
107 # Clean up
108 rm {ARTIFACT}-{VERSION}-samples.jar
109
1104. If this works, proceed directly to step 4.
111
112#### Step 4: Read samples and implement
113
1141. Read the relevant `.kt` sample files.
1152. Use these official, version-matched samples as the source of truth for:
116 - Required parameters and slot names.
117 - Default styling and typography tokens.
118 - Interactive behaviors (for example: `onClick`, `onLongClick`).
119 - Component nesting (for example: `AppScaffold` -\> `ScreenScaffold`).
120
121### Capability 4: Component guidance
122
123**Mandatory**: Use this capability as a checklist against any component use. It
124provides more holistic guidance on how to use each component in practice, beyond
125the component syntax.
126
1271. `AppScaffold` and `ScreenScaffold`
128 - \[ \] Use `AppScaffold` as the outer container, with `ScreenScaffold` children.
129 - \[ \] Use only **ONE** `AppScaffold` and any number of `ScreenScaffold`.
1302. `ScalingLazyColumn` - Use `TransformingLazyColumn` instead.
1313. `TransformingLazyColumn` - You will need the following imports:
132
133
134 ```kotlin
135 import androidx.wear.compose.foundation.lazy.TransformingLazyColumn
136 import androidx.wear.compose.foundation.lazy.TransformingLazyColumnDefaults
137 import androidx.wear.compose.foundation.lazy.rememberTransformingLazyColumnState
138 // ...
139 import androidx.wear.compose.material3.lazy.rememberTransformationSpec
140 import androidx.wear.compose.material3.lazy.transformedHeight
141 ```
142
143 <br />
144
145 **Canonical example**:
146
147
148 ```kotlin
149 val columnState = rememberTransformingLazyColumnState()
150 val transformationSpec = rememberTransformationSpec()
151 ScreenScaffold(
152 scrollState = columnState
153 ) { contentPadding ->
154 TransformingLazyColumn(
155 state = columnState,
156 contentPadding = contentPadding
157 ) {
158 item {
159 ListHeader(
160 modifier = Modifier
161 .fillMaxWidth()
162 .transformedHeight(this, transformationSpec)
163 .minimumVerticalContentPadding(ListHeaderDefaults.minimumTopListContentPadding),
164 transformation = SurfaceTransformation(transformationSpec)
165 ) {
166 Text(text = "Header")
167 }
168 }
169 // ... other items
170 item {
171 Button(
172 modifier = Modifier
173 .fillMaxWidth()
174 .transformedHeight(this, transformationSpec)
175 .minimumVerticalContentPadding(ButtonDefaults.minimumVerticalListContentPadding),
176 transformation = SurfaceTransformation(transformationSpec),
177 onClick = { /* ... */ },
178 icon = {
179 Icon(
180 imageVector = Icons.Default.Build,
181 contentDescription = "build",
182 )
183 },
184 ) {
185 Text(
186 text = "Build",
187 maxLines = 1,
188 overflow = TextOverflow.Ellipsis,
189 )
190 }
191 }
192 }
193 }
194 ```
195
196 <br />
197
198 - \[ \] Use `TransformingLazyColumn` instead of `ScalingLazyColumn`.
199 - \[ \] You must pass the `contentPadding` parameter from `ScreenScaffold` to the `TransformingLazyColumn`.
200 - \[ \] Use the `minimumVerticalContentPadding` modifier to achieve required padding top and bottom.
201 - This expects a value from defaults, such as `ButtonDefaults`, `CardDefaults`, \`ListHeaderDefaults.
202 - Note: This is a scoped modifier available within `TransformingLazyColumnItemScope`.
203 - \[ \] Ensure the list morphs and scales.
204 - \[ \] Use `transformedHeight` modifier.
205 - \[ \] Use `transform = SurfaceTransform(...)`.
206 - \[ \] If configuring a list for snapping, use `flingBehavior` and `rotaryScrollableBehavior` **together**:
207
208
209 ```kotlin
210 val columnState = rememberTransformingLazyColumnState()
211 ScreenScaffold(scrollState = columnState) { contentPadding ->
212 TransformingLazyColumn(
213 state = columnState,
214 flingBehavior = TransformingLazyColumnDefaults.snapFlingBehavior(columnState),
215 rotaryScrollableBehavior = RotaryScrollableDefaults.snapBehavior(columnState)
216 ) {
217 // ...
218 // ...
219 }
220 }
221 ```
222
223 <br />
224
2254. `ScreenScaffold`
226
227 - \[ \] Guard the `scrollIndicator` with `!LocalScrollCaptureInProgress.current`.
2285. `EdgeButton`
229
230 - \[ \] Do **NOT** use as the final item within a `TransformingLazyColumn`. Instead, use the slot in `ScreenScaffold`.
231 - \[ \] When used in a `TransformingLazyColumn`, add the required overscroll behavior:
232
233
234 ```kotlin
235 val columnState = rememberTransformingLazyColumnState()
236 ScreenScaffold(
237 scrollState = columnState,
238 edgeButton = {
239 EdgeButton(
240 onClick = { /* TODO */ },
241 modifier = Modifier.scrollable(
242 columnState,
243 orientation = Orientation.Vertical,
244 reverseDirection = true,
245 // Apply overscroll to the EdgeButton for proper scrolling behavior.
246 overscrollEffect = rememberOverscrollEffect(),
247 )
248 ) {
249 Text("More")
250 }
251 }
252 ) { contentPadding ->
253 TransformingLazyColumn(
254 contentPadding = contentPadding,
255 state = columnState,
256 ) {
257 // ...
258 // ...
259 }
260 }
261 ```
262
263 <br />
264
2656. `Column`
266
267 - \[ \] USE as a direct child of `ScreenScaffold` *if* the screen is will **never** scroll, even with the largest system font.
268 - \[ \] Use `TransformingLazyColumn` instead for all other cases.
2697. Styles
270
271 - \[ \] Do **NOT** hard-code text sizes, use `typography` from `MaterialTheme`.
272 - \[ \] Do **NOT** hard-code colors, use `colorScheme` from `MaterialTheme`.
2738. Use component defaults:
274
275 - \[ \] Components such as `Button` have a corresponding `ButtonDefaults` object.
276 - \[ \] Check for and use the `*Defaults` object for any component when working with padding and styling values, in preference to hard-coded values.
2779. Use Wear specific previews:
278
279 - \[ \] `WearPreviewDevices`
280 - \[ \] `WearPreviewFontScales`
28110. Ambient mode
282
283 - \[ \] Use `LocalAmbientModeManager` instead of `AmbientLifecycleObserver`.
28411. Navigation
285
286 - \[ \] When adding navigation fresh, use Navigation3.
287 - \[ \] For Navigation3 in Wear OS, use `SwipeDismissableSceneStrategy()` from the Wear Compose `compose-navigation3` library.
28812. Comments
289
290 - \[ \] Where any Kotlin file has been modified, ensure that the existing comments are up to date and accurately reflect any changes to the implementation.
29113. `HorizontalPager` or `VerticalPager`
292
293 - \[ \] Use the Composable hierarchy in this order: `AppScaffold`, `HorizontalPagerScaffold`, `HorizontalPager`, `AnimatedPage`, `ScreenScaffold`. Or similarly for `VerticalPager`.
294
295---
296
297**Source:** [`android/skills`](https://github.com/android/skills) → `wear/wear-compose-m3/SKILL.md`