mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 01:56:47 +08:00
cache window size/pos
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user