File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
wear/src/main/java/com/example/wear/snippets/m3 Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,11 @@ fun navigation() {
5757 }
5858 }
5959 }
60- // [START_EXCLUDE]
6160}
6261
62+ // Implementation of one of the screens in the navigation
6363@Composable
6464fun MessageDetail (id : String ) {
65- // [END_EXCLUDE]
6665 // .. Screen level content goes here
6766 val scrollState = rememberTransformingLazyColumnState()
6867
Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ fun SnapScrollableScreen() {
170170 // [START android_wear_rotary_input_snap_fling]
171171 val listState = rememberScalingLazyListState()
172172 ScreenScaffold (
173+ scrollState = listState,
173174 scrollIndicator = {
174175 ScrollIndicator (state = listState)
175176 }
@@ -201,7 +202,7 @@ fun SnapScrollableScreen() {
201202fun PositionScrollIndicator () {
202203 // [START android_wear_rotary_position_indicator]
203204 val listState = rememberTransformingLazyColumnState()
204- ScreenScaffold (
205+ ScreenScaffold (scrollState = listState,
205206 scrollIndicator = {
206207 ScrollIndicator (state = listState)
207208 }
You can’t perform that action at this time.
0 commit comments