chrome.dart

Provide Dart interop with chrome.* APIs for Chrome Packaged Apps

  • 所有者: dart-gde/chrome.dart
  • 平台:
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

chrome.dart

Build Status

An library for accessing the Chrome APIs in a packaged app or extension.

Installing

Add this to your package's pubspec.yaml file:

dependencies:
  chrome: any

Using the library

import 'package:chrome/chrome_app.dart' as chrome;

void main() {
  chrome.runtime.getPlatformInfo().then((Map m) {
    print(m.toString());
  });
}

Also, see the FAQ.

In your pubspec.yaml

In order to build your app with pub build, you'll need to tell it to select
the CSP compliant output of dart2js. To do that, add these lines:

transformers:
- chrome

to your pubspec.yaml file.

Documentation

Documentation is available at:

Breaking Changes

For version 0.5.0, we removed the older chrome.socket API in favor of the new
chrome.sockets API. In order to continue using the older API, you can
reference it directly via an import:

import 'package:chrome/gen/socket.dart';

主要指標

概覽
名稱與所有者dart-gde/chrome.dart
主編程語言Dart
編程語言JavaScript (語言數: 5)
平台
許可證Other
所有者活动
創建於2012-12-17 21:19:48
推送於2019-06-22 01:30:11
最后一次提交2018-05-03 14:43:50
發布數24
最新版本名稱v0.9.31 (發布於 )
第一版名稱v0.1.1 (發布於 2013-05-28 09:53:30)
用户参与
星數125
關注者數9
派生數48
提交數589
已啟用問題?
問題數123
打開的問題數58
拉請求數148
打開的拉請求數4
關閉的拉請求數7
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?