Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Extensions + Dart

Is it possible? I tried to insert the google dart api into page body and all I get is blank page, no script running...

like image 736
Aleksandar Toplek Avatar asked Feb 25 '12 09:02

Aleksandar Toplek


3 Answers

You can currently not use Dart for writing extensions in Chrome as Dart is not available in it. There exists a Chromium version called Dartium that has Dart support build in, but the extension API in it does not seam to be Dart enabled just yet.

like image 158
Lars Tackmann Avatar answered Sep 21 '22 18:09

Lars Tackmann


There is the cool package chrome available at http://pub.dartlang.org that does axactly this

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

like image 20
Günter Zöchbauer Avatar answered Sep 18 '22 18:09

Günter Zöchbauer


Yes, it is straight forward. You need to create 3 Dart apps (for background, popup and options page) and use the dart:js package to communicate with the chrome extensions API.

Kudos to Chris Bucket for the blog entry about Using Dart for Chrome Packaged Apps.

UPDATE: It looks like the website from Chris Bucket has disappeared.

like image 45
Draško Kokić Avatar answered Sep 17 '22 18:09

Draško Kokić