cache window size/pos

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-17 11:30:21 +08:00
parent 470140a068
commit 8a3cf34cb1
5 changed files with 59 additions and 8 deletions

View File

@@ -115,15 +115,15 @@ abstract class Utils {
);
}
static void copyText(
static Future<void> copyText(
String text, {
bool needToast = true,
String? toastText,
}) {
Clipboard.setData(ClipboardData(text: text));
if (needToast) {
SmartDialog.showToast(toastText ?? '已复制');
}
return Clipboard.setData(ClipboardData(text: text));
}
static String makeHeroTag(v) {