簡體   English   中英

Dart聚合物Google Picker

[英]Dart polymer Google Picker

我有兩個使用Google(文檔)Picker API的Dart項目。 一種是“原始” Dart,另一種是使用Polymer框架。

我有個大問題,在“原始” Dart項目上可以正常工作,但是當我打電話時Polymer崩潰了Dartium:

var picker = new google.picker.PickerBuilder().addView(google.picker.ViewId.SPREADSHEETS).setDeveloperKey(developerKey).setCallback(pickerCallback).setOrigin(window.location.protocol + '//' + window.location.host).build();

// Add the view to the DOM
picker.setVisible(true);

實際上是picker.setVisible(true); 導致Dartium崩潰。

您能想到為什么會這樣嗎? 沒有拋出任何錯誤,它直接轉到“ Aw,Snap!”。

更新:

最新的SDK版本0.8.10.3_r29803已解決此問題。

使用了最新的“ package:google_oauth2_client / google_oauth2_browser.dart”; 使用Picker API。 顯示問題已在Dart版本1中修復

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM