提交 f61bec84 编写于 作者: 神楽坂花火 提交者: Gary Qian

Pass "null" when copy data is null to iOS pasteboard.string (#14046)

上级 fad1b23c
......@@ -224,7 +224,11 @@ using namespace flutter;
- (void)setClipboardData:(NSDictionary*)data {
UIPasteboard* pasteboard = [UIPasteboard generalPasteboard];
if (data[@"text"]) {
pasteboard.string = data[@"text"];
} else {
pasteboard.string = @"null";
}
}
@end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册