Skip to content

Commit 8bf8154

Browse files
committed
Merge branch 'textchangeflow' into spell-check-test
# Conflicts: # richeditor-compose/api/android/richeditor-compose.api # richeditor-compose/api/desktop/richeditor-compose.api # sample/common/src/commonMain/kotlin/com/mohamedrejeb/richeditor/sample/common/richeditor/RichEditorContent.kt
2 parents 47a9c60 + ad23f9d commit 8bf8154

File tree

1 file changed

+3
-20
lines changed
  • sample/common/src/commonMain/kotlin/com/mohamedrejeb/richeditor/sample/common/richeditor

1 file changed

+3
-20
lines changed

sample/common/src/commonMain/kotlin/com/mohamedrejeb/richeditor/sample/common/richeditor/RichEditorContent.kt

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,8 @@ import androidx.compose.foundation.layout.windowInsetsPadding
1212
import androidx.compose.foundation.lazy.LazyColumn
1313
import androidx.compose.material.icons.Icons
1414
import androidx.compose.material.icons.automirrored.filled.ArrowBack
15-
import androidx.compose.material3.DropdownMenu
16-
import androidx.compose.material3.DropdownMenuItem
17-
import androidx.compose.material3.ExperimentalMaterial3Api
18-
import androidx.compose.material3.HorizontalDivider
19-
import androidx.compose.material3.Icon
20-
import androidx.compose.material3.IconButton
21-
import androidx.compose.material3.MaterialTheme
22-
import androidx.compose.material3.Scaffold
23-
import androidx.compose.material3.Text
24-
import androidx.compose.material3.TopAppBar
25-
import androidx.compose.runtime.Composable
26-
import androidx.compose.runtime.LaunchedEffect
27-
import androidx.compose.runtime.getValue
28-
import androidx.compose.runtime.mutableStateOf
29-
import androidx.compose.runtime.remember
30-
import androidx.compose.runtime.rememberCoroutineScope
31-
import androidx.compose.runtime.setValue
15+
import androidx.compose.material3.*
16+
import androidx.compose.runtime.*
3217
import androidx.compose.ui.Modifier
3318
import androidx.compose.ui.geometry.Offset
3419
import androidx.compose.ui.unit.DpOffset
@@ -44,7 +29,7 @@ import com.mohamedrejeb.richeditor.ui.InteractionType
4429
import com.mohamedrejeb.richeditor.ui.material3.OutlinedRichTextEditor
4530
import com.mohamedrejeb.richeditor.ui.material3.RichText
4631
import com.mohamedrejeb.richeditor.ui.material3.RichTextEditor
47-
import kotlinx.coroutines.launch
32+
import kotlinx.coroutines.*
4833

4934
@OptIn(ExperimentalMaterial3Api::class)
5035
@Composable
@@ -58,12 +43,10 @@ fun RichEditorContent() {
5843

5944
LaunchedEffect(Unit) {
6045
scope.launch {
61-
println("Start collecting...")
6246
outlinedRichTextState.textChanges.collect { state ->
6347
println("Text changed!")
6448
println(state.toText())
6549
}
66-
println("Collection finished!")
6750
}
6851
}
6952

0 commit comments

Comments
 (0)