Skip to content
pubscout

webdev

4.1.0, released 3 weeks ago by tools.dart.dev

A command-line tool for developing and deploying web applications with Dart.

$ flutter pub add webdev
Source repository

What it does

Provides a local web development server with a file system watcher to rebuild on changes. Includes features for debugging web apps, launching in Chrome, and building applications for deployment.

AI-written summary of version 4.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are developing a web application with Dart.
  • You need a local development server with file watching and automatic rebuilds.

Skip it when

  • You are building non-web Dart applications (like mobile or desktop).
  • You want to use it as a library dependency instead of activating it globally.

Strengths

  • Integrates debugging features and DevTools support for Dart web apps.
  • Supports automatic page refresh and module reloading.

Weaknesses

  • Not meant to be used as a package dependency, must be globally activated.
  • Requires specific build_runner and build_web_compilers setup.

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
27

Activate globally using `dart pub global activate webdev` and configure dev_dependencies like build_runner and build_web_compilers in pubspec.yaml.

dart pub global activate webdev
webdev serve

Alternatives

Packages that do the same job and could replace webdev.

  • flutterpi_tool

    A tool to make development and distribution of flutter-pi apps easier.

  • flutter_gpu_shaders

    Build tool that compiles Flutter GPU shader bundles via a build hook.

  • msix

    CLI tool that creates MSIX installers from Flutter Windows build outputs.

  • get_cli

    Official CLI for the GetX framework to scaffold projects, files, and manage dependencies.

Works with

Packages commonly used together with webdev: ones it builds on, ones built on it, and its own family.