From e40cc463eb985dc2399253847ac0014eea23c0ec Mon Sep 17 00:00:00 2001 From: Steven Schoen Date: Fri, 20 Aug 2021 14:43:55 -0400 Subject: [PATCH] Remove reference to ScrollableColumn in doc What's `ScrollableColumn`? Never heard of it. There's no such thing as pre-1.0 Compose, and the API was perfect from the very first alpha. --- docs/insets.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/insets.md b/docs/insets.md index cfb49bbd8..0aff10bc6 100644 --- a/docs/insets.md +++ b/docs/insets.md @@ -225,13 +225,13 @@ The features below are experimental, and require developers to [opt-in](https:// === "Usage" ``` kotlin - // Here we're using ScrollableColumn, but it also works with LazyColumn, etc. - ScrollableColumn( + // Here we're using a scrollable Column, but it also works with LazyColumn, etc. + Column( // We use the nestedScroll modifier, passing in the // the connection from rememberImeNestedScrollConnection() - modifier = Modifier.nestedScroll( - connection = rememberImeNestedScrollConnection() - ) + modifier = Modifier + .nestedScroll(connection = rememberImeNestedScrollConnection()) + .verticalScroll(state = rememberScrollState()) ) { // list content }