DeviceCodePanel
Category: UI
Source: device_code_panel.dart
Modal for OAuth device-code flows (GitHub Copilot).
Shows the verification URI and a short user code, subscribes to the adapter's progress stream, and completes when the adapter emits [AuthFlowSucceeded] or [AuthFlowFailed] (or the user presses Esc).
Classes
DeviceCodePanel
Constructor
dart
DeviceCodePanel({
required this.flow,
this.onNeedsRender,
PanelSize? width,
PanelSize? height,
})Properties
| Property | Type | Description |
|---|---|---|
flow | DeviceCodeFlow | |
result | Future<Map<String, String>?> get | Resolves with the adapter-returned fields on success, or null on cancel / failure. |
isComplete | bool get | |
bordered | final | |
innerW | final | |
painted | final | |
topPad | final | |
leftPad | final | |
out | final | |
out | return | |
isComplete | bool get |
Methods
void cancel()
bool handleEvent(TerminalEvent event)
`List<String> render(
int termWidth,
int termHeight,
List<String> backgroundLines,
)`