opt.: terminal selection

This commit is contained in:
lollipopkit
2024-04-22 01:19:07 +08:00
parent d94b2a7805
commit 4044f43808
10 changed files with 103 additions and 37 deletions

View File

@@ -514,7 +514,7 @@ class _ServerPageState extends State<ServerPage>
),
actions: [
TextButton(
onPressed: () => Shares.copy(ss.err!),
onPressed: () => Shares.copy(ss.err ?? l10n.unknownError),
child: Text(l10n.copy),
)
],

View File

@@ -96,6 +96,7 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
_media = MediaQuery.of(context);
_terminalTheme = _isDark ? TerminalThemes.dark : TerminalThemes.light;
_terminalTheme = _terminalTheme.copyWith(selectionCursor: primaryColor);
// Because the virtual keyboard only displayed on mobile devices
if (isMobile) {