suggestion library
The counterpart of package:xterm/suggestion.dart: an overlay placed
at the terminal's cursor, for command suggestions and completions
(SuggestionPortal, SuggestionPortalController).
Place the popup with the view's cursor rectangle:
final viewKey = GlobalKey<TerminalViewState>();
// TerminalView(terminal, key: viewKey)
suggestionController.update(viewKey.currentState!.globalCursorRect);
Classes
- RenderCompletionLayout
- The render object of SuggestionLayout: lays its child out below the cursor rectangle, or above it when there is no room below.
- SuggestionLayout
- A widget that places child around cursorRect.
- SuggestionPortal
- A convenience widget to place a suggestion popup around the cursor specified by SuggestionPortalController.
- SuggestionPortalController
- Controls the location of the suggestion popup of SuggestionPortal.