fix clip board

This commit is contained in:
niuhuan 2021-12-28 09:28:14 +08:00
parent 43a70e81b3
commit 2f9710aa42
1 changed files with 2 additions and 7 deletions

View File

@ -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页面