fix clip board
This commit is contained in:
parent
43a70e81b3
commit
2f9710aa42
|
@ -12,13 +12,8 @@ import 'config/ChooserRoot.dart';
|
||||||
|
|
||||||
/// 复制内容到剪切板
|
/// 复制内容到剪切板
|
||||||
void copyToClipBoard(BuildContext context, String string) {
|
void copyToClipBoard(BuildContext context, String string) {
|
||||||
if (Platform.isWindows || Platform.isMacOS) {
|
|
||||||
FlutterClipboard.copy(string);
|
FlutterClipboard.copy(string);
|
||||||
defaultToast(context, "已复制到剪切板");
|
defaultToast(context, "已复制到剪切板");
|
||||||
} else if (Platform.isAndroid) {
|
|
||||||
FlutterClipboard.copy(string);
|
|
||||||
defaultToast(context, "已复制到剪切板");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 打开web页面
|
/// 打开web页面
|
||||||
|
|
Loading…
Reference in New Issue