-
import 'package:flutter/services.dart';
-
/// 把文本复制进入粘贴板
-
Clipboard.setData(ClipboardData(text: "2333"));
-
/// 取出粘贴板的文本
-
ClipboardData r = await Clipboard.getData('text/plain');
-
print(r.text)
原文:https://www.cnblogs.com/ajanuw/p/11203784.html