@@ -35,9 +35,6 @@ import androidx.compose.runtime.remember
3535import androidx.compose.runtime.setValue
3636import androidx.compose.ui.Modifier
3737import androidx.compose.ui.focus.FocusRequester
38- import androidx.compose.ui.focus.FocusRequester.Companion.FocusRequesterFactory.component1
39- import androidx.compose.ui.focus.FocusRequester.Companion.FocusRequesterFactory.component2
40- import androidx.compose.ui.focus.FocusRequester.Companion.FocusRequesterFactory.component3
4138import androidx.compose.ui.focus.focusProperties
4239import androidx.compose.ui.focus.focusRequester
4340import androidx.compose.ui.unit.dp
@@ -120,7 +117,7 @@ fun OneDimensionalFocusTraversal(
120117 // Focus target
121118 Card (
122119 onClick = onClick,
123- modifier = Modifier . Companion
120+ modifier = Modifier
124121 .width(160 .dp)
125122 .offset(x = 176 .dp)
126123 ) {
@@ -155,7 +152,7 @@ fun OneDimensionalFocusTraversalInZShape(
155152 // [START android_compose_touchinput_focus_one_dimensional_traversal_in_z_shape]
156153 Column (
157154 verticalArrangement = Arrangement .spacedBy(16 .dp),
158- // modifier = modifier
155+ modifier = modifier
159156 ) {
160157 Row (
161158 horizontalArrangement = Arrangement .spacedBy(16 .dp),
@@ -205,7 +202,7 @@ fun OneDimensionalFocusTraversalOverride(
205202 modifier = Modifier
206203 .focusRequester(first)
207204 .focusProperties {
208- next = second // Set focus move to 2nd card wth the Tab key
205+ next = second // Set focus move to 2nd card with the Tab key
209206 }
210207
211208 ) {
@@ -217,10 +214,10 @@ fun OneDimensionalFocusTraversalOverride(
217214 modifier = Modifier
218215 .focusRequester(third)
219216 .focusProperties {
220- next = first // Set focus move to 1st card wth the Tab key
217+ next = first // Set focus move to 1st card with the Tab key
221218 }
222219 ) {
223- Text (text = " 3nd card" , modifier = Modifier .padding(32 .dp))
220+ Text (text = " 3rd card" , modifier = Modifier .padding(32 .dp))
224221 }
225222 }
226223 // Focus target
@@ -230,7 +227,7 @@ fun OneDimensionalFocusTraversalOverride(
230227 Modifier
231228 .focusRequester(second)
232229 .focusProperties {
233- next = third // Set focus move to third card wth the Tab key
230+ next = third // Set focus move to third card with the Tab key
234231 }
235232 ) {
236233 Text (text = " 2nd card" , modifier = Modifier .padding(32 .dp))
0 commit comments