File tree Expand file tree Collapse file tree
packages/devtools_app/lib/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,8 +164,6 @@ dart_code_metrics:
164164 # TODO(https://github.com/flutter/devtools/issues/9906) remove these
165165 # excludes as findings are resolved.
166166 - integration_test/**
167- - lib/src/extensions/**
168- - lib/src/framework/**
169167 - lib/src/screens/**
170168 - lib/src/service/**
171169 - lib/src/shared/**
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ class EmbeddedExtensionControllerImpl extends EmbeddedExtensionController
7878 final extensionPostEventStream =
7979 StreamController <DevToolsExtensionEvent >.broadcast ();
8080
81+ // ignore: unused-code, TODO(https://github.com/flutter/devtools/issues/9907): false positive.
8182 bool _initialized = false ;
8283
8384 @override
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ import 'package:flutter/material.dart';
77import 'controller.dart' ;
88
99class EmbeddedExtension extends StatelessWidget {
10- const EmbeddedExtension ({super .key, required this .controller});
11-
12- final EmbeddedExtensionController controller;
10+ const EmbeddedExtension ({
11+ super .key,
12+ required EmbeddedExtensionController controller,
13+ });
1314
1415 @override
1516 Widget build (BuildContext context) {
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ class ExtensionService extends DisposableController
7070 ///
7171 /// This set of extensions will include one version of a DevTools extension
7272 /// per package.
73+ @visibleForTesting
7374 List <DevToolsExtensionConfig > get availableExtensions =>
7475 _currentExtensions.value.availableExtensions;
7576
Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ class HomeScreen extends Screen {
3232 titleGenerator: () => devToolsTitle.value,
3333 );
3434
35- static final id = ScreenMetaData .home.id;
36-
3735 final List <DevToolsJsonFile > sampleData;
3836
3937 @override
@@ -165,18 +163,15 @@ class _ConnectInputState extends State<ConnectInput> with BlockingActionMixin {
165163 void initState () {
166164 super .initState ();
167165 connectDialogController = TextEditingController ();
168- assert (() {
169- _debugInitVmServiceCache ();
170- return true ;
171- }());
166+ if (kDebugMode) _debugInitVmServiceCache ();
172167 }
173168
174169 void _debugInitVmServiceCache () async {
175170 // We only do this in debug mode as it speeds iteration for DevTools
176171 // developers who tend to repeatedly restart DevTools to debug the same
177172 // test application.
178173 final uri = await storage.getValue (_debugVmServiceUriKey);
179- if (uri != null ) {
174+ if (uri != null && mounted ) {
180175 setState (() {
181176 connectDialogController.text = uri;
182177 });
@@ -258,10 +253,9 @@ class _ConnectInputState extends State<ConnectInput> with BlockingActionMixin {
258253 return ;
259254 }
260255
261- assert (( ) {
256+ if (kDebugMode ) {
262257 safeUnawaited (storage.setValue (_debugVmServiceUriKey, uri));
263- return true ;
264- }());
258+ }
265259
266260 // Cache the routerDelegate and notifications providers before the async
267261 // gap as the landing screen may not be displayed by the time the async gap
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ bool debugTestReleaseNotes = false;
2828// from the flutter/website PR, which has a GitHub action that automatically
2929// stages commits to firebase. Example:
3030// https://flutter-docs-prod--pr12652-devtools-release-notes-2-52-3bbb8c0u.web.app/tools/devtools/release-notes/release-notes-2.52.0.md.
31+ // ignore: unused-code, debug-only feature.
3132String ? _debugReleaseNotesUrl;
3233
3334const releaseNotesKey = Key ('release_notes' );
Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ class StatusLine extends StatelessWidget {
3737 /// Whether to highlight the footer when DevTools is connected to an app.
3838 final bool highlightForConnection;
3939
40- static const deviceInfoTooltip = 'Device Info' ;
41-
4240 /// The padding around the footer in the DevTools UI.
4341 EdgeInsets get padding => const EdgeInsets .symmetric (
4442 horizontal: defaultSpacing,
You can’t perform that action at this time.
0 commit comments