Skip to content

Commit d71778c

Browse files
authored
Add snippets for Indication and Ripple migration (#191)
* Add ripple snippets. * Add new ripple APIs. * Add snippets for interactions. * Added more ripple snippets. * Update foundation and material to 1.7.0-alpha01 * Fix snippet tag. * Apply Spotless --------- Co-authored-by: arriolac <[email protected]>
1 parent 3451c76 commit d71778c

File tree

7 files changed

+817
-6
lines changed

7 files changed

+817
-6
lines changed

compose/snippets/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ dependencies {
8282
implementation(composeBom)
8383
androidTestImplementation(composeBom)
8484

85+
implementation(libs.androidx.compose.foundation)
8586
implementation(libs.androidx.compose.ui)
8687
implementation(libs.androidx.compose.ui.util)
8788
implementation(libs.androidx.compose.ui.graphics)

compose/snippets/src/main/java/com/example/compose/snippets/designsystems/Material2Snippets.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
@file:Suppress("unused")
17+
@file:Suppress("unused", "DEPRECATION_ERROR")
1818

1919
package com.example.compose.snippets.designsystems
2020

compose/snippets/src/main/java/com/example/compose/snippets/layouts/PagerSnippets.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ private fun CustomSnapDistance() {
426426
HorizontalPager(
427427
state = pagerState,
428428
pageSize = PageSize.Fixed(200.dp),
429-
beyondBoundsPageCount = 10,
429+
outOfBoundsPageCount = 10,
430430
flingBehavior = fling
431431
) {
432432
PagerSampleItem(page = it)

0 commit comments

Comments
 (0)