flutter / flutter/devtools

Check for modern web libraries to determine if an app is a web app

Open Beginner friendly
#9,973 3 comments 0 reactions 0 assignees View on GitHub
cleanup P1
Dominant language
Dart
Stars
1.7k
Forks
404
Avg merge
6d 17h
Merged PRs (30d)
18

Description

We currently check for the presence of `dart:html` in the connected app to determine whether it is a web application.

https://github.com/flutter/devtools/blob/master/packages/devtools_app_shared/lib/src/service/connected_app.dart#L88-L89

We should make this an OR check with a `package:web` or `dart:js_interop` library. Leaving the dart:html condition we allow us to still support apps using dart:html (e.g. g3).

Contributor guide

Open the contributing guide

Research direction

Start in packages/devtools_app_shared/lib/src/service/connected_app.dart at lines 88-89, where the connected app is identified as a web application. Trace the existing dart:html check and update the condition to also recognize package:web or dart:js_interop while preserving dart:html support. Done means apps using any of these libraries are detected as web apps.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
85/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.