Search packages, repositories and app categories

Package detailsv1.1.2

web

Lightweight browser API bindings built around JS interop.

Web
30-day downloads
13.4M
Likes
242
Pub points
160

Install package

flutter pub add web

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The web package provides lightweight bindings for browser APIs in Flutter, enabling seamless JavaScript interop on the web platform. Built specifically for Flutter web apps, it allows developers to access native browser features such as DOM manipulation, window events, and Web APIs directly from Dart. The package simplifies integration with JavaScript without requiring complex boilerplate, making it ideal for enhancing web-specific functionality. It is maintained by dart.dev and designed for use exclusively on web targets.

Use cases

  • Accessing browser DOM elements
  • Handling window and event APIs
  • Integrating with JavaScript libraries
  • Implementing web-specific features
  • Enabling dynamic content rendering
  • Creating interactive web experiences

Key features

  • Lightweight JS interop
  • Direct browser API access
  • Web-only platform support
  • Minimal boilerplate
  • Official Dart maintainership
  • Seamless Flutter web integration

Suitable for

  • Flutter web developers
  • Apps needing browser API access
  • Projects using JavaScript interoperability
  • Developers targeting web platforms only
  • Custom web interactions
  • Enhancing web app functionality

Considerations

  • Only works on web platform
  • Requires understanding of JS interop
  • Limited to browser environment
  • Not compatible with mobile or desktop
  • Depends on JavaScript execution context
  • May need careful error handling

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Package Description Version CI
web Lightweight browser API bindings built around JS interop. pub package package:web
js_interop Utility functions and types for dart:js_interop and dart:js_interop_unsafe. pub package package:js_interop
js_interop_gen Tools to generate Dart interfaces from TypeScript declaration files and Web IDL definitions. N/A package:js_interop_gen
web_generator Internal tooling to generate the web package bindings. N/A package:web_generator

Categories

Source repository

Projects using this package

Rankings