We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What I want to achieve is to get the current selected text on TerminalView, and I set a onTapUp callback which never been fired.
TerminalView
onTapUp
TerminalView( terminal, theme: draculaTheme, keyboardType: TextInputType.text, autofocus: true, controller: _terminalController, onTapUp: _onTapUp, )
Thanks for the great library!
The text was updated successfully, but these errors were encountered:
How do you get the currently selected text? I can't find the relevant api
Sorry, something went wrong.
@git-xiaomy try this:
String? get terminalSelected { final range = _terminalController.selection; if (range == null) { return null; } return terminal.buffer.getText(range); }
@maxhis Did you finally fixed this? I found the same problem, do you have any walkaround?
No branches or pull requests
What I want to achieve is to get the current selected text on
TerminalView
, and I set aonTapUp
callback which never been fired.Thanks for the great library!
The text was updated successfully, but these errors were encountered: