1

As you can see here, there is a composable function available to use as a wrapper for Text functions:

SelectionContainer {
        Column {
            Text("test1")
            Text("test2")
            Text("test3")
        }
    }

However, it does not work with BasicTextField.

For more context, I'm attempting to make the CodeViewer editable and I don't want to use a single BasicTextField as they did in Notepad for "simplicity".

I'm considering implementing something similar to SelectionContainer for my use case but I'm not sure if it's possible or even a good idea.

Any thoughts?

Shynline
  • 1,497
  • 1
  • 13
  • 18
  • 1
    The idea of using SelectionContainer is basically with multiple child elements in this case Text but if you use Single BasicTextField you can still select everything that it contains... – AgentP Dec 12 '21 at 05:39
  • 1
    Yeah, that's actually how I implemented it for now but according to a comment in their example "TextField isn't efficient for big text files" I believe there's no solution for now without going deep into the framework. maybe they implement something like `SelectionContainer` in future releases. I'll update this question if that happens. Thanks – Shynline Dec 12 '21 at 07:39

0 Answers0