【问题标题】:Dart polymer Google PickerDart 聚合物 Google Picker
【发布时间】:2013-12-25 23:41:50
【问题描述】:

我有两个使用 Google (docs) 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 中得到修复

【问题讨论】:

    标签: javascript interop dart polymer google-picker


    【解决方案1】:

    使用了最新的“package:google_oauth2_client/google_oauth2_browser.dart”;使用 Picker API。 Dart 版本 1 中修复了显示问题

    【讨论】:

      猜你喜欢
      • 2015-03-07
      • 1970-01-01
      • 1970-01-01
      • 2013-08-24
      • 1970-01-01
      • 1970-01-01
      • 2014-02-20
      • 2014-05-18
      • 1970-01-01
      相关资源
      最近更新 更多