webext 0.1.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 50

Overview #

This Dart package contains APIs for building browser extensions for Chrome, Edge, and Firefox.

Currently the package supports only a small set of APIs. If you want more APIs, you could use package:chrome.

Licensed under the MIT License.

Contributing #

Documentation #

Getting started #

Pub package webextdev provides a convenient command-line tool.

Install webextdev:

pub global activate webextdev

Create a project:

webextdev create hello_world

Get dependencies:

cd hello_world

pub get

Run the browser extension:

pub run webextdev run --build

0.1.3 #

  • Removed an unused dependency.

0.1.2 #

  • Dependency and documentation fixes.

0.1.1 #

  • Documentation fixes.

0.1.0 #

  • Initial release


import 'package:webext/webext.dart';

Future<void> main() async {
  await BrowserAction.instance.setBadgeText("42");

Use this package as a library

1. Depend on it

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

  webext: ^0.1.3

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:webext/webext.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Dec 9, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.12.21


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.4.0 <3.0.0
js >=0.6.1 <1.0.0 0.6.1+1
meta >=1.1.7 <2.0.0 1.1.8
Dev dependencies
pedantic ^1.8.0
test ^1.6.5