Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-06 14:14:19 +08:00
parent 1a8c348af1
commit 07843a5e77
239 changed files with 3175 additions and 13237 deletions

View File

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