We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e035a3a commit fd32ebcCopy full SHA for fd32ebc
2 files changed
app/src/main/res/layout/activity_main.xml
@@ -181,7 +181,7 @@
181
app:btn_fill_color="#999933"
182
app:siShape="@raw/heart"
183
android:layout_centerVertical="true"
184
- android:layout_alignParentRight="true"
+
185
android:layout_alignParentEnd="true" />
186
187
<TextView
shinebuttonlib/src/main/java/com/sackcentury/shinebuttonlib/ShineButtonCompose.kt
@@ -94,7 +94,9 @@ fun ShineButtonCompose(
94
},
95
label = "Scale"
96
) { checked ->
97
- 1.0f
+ // To satisfy Compose's UnusedTransitionTargetStateParameter lint, we must read the state parameter.
98
+ // The scale naturally returns to 1.0f in both checked/unchecked idle states.
99
+ if (checked) 1.0f else 1.0f
100
}
101
102
val particleColors = remember(allowRandomColor) {
0 commit comments