Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Run dcm checks on packages
# TODO(https://github.com/flutter/devtools/issues/9906): run on all DevTools packages.
run: |
dcm check-unused-code packages/devtools_app packages/devtools_shared --exclude-public-api
dcm check-unused-code packages/devtools_app packages/devtools_extensions packages/devtools_shared --exclude-public-api

test-packages:
name: ${{ matrix.os }} ${{ matrix.package }} test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import 'package:integration_test/integration_test.dart';
// dart run integration_test/run_tests.dart --target=integration_test/test/simulated_environment_test.dart

const safePumpDuration = Duration(seconds: 3);
const longPumpDuration = Duration(seconds: 6);

void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ part of '../_simulated_devtools_environment.dart';

class _UriConnectionDisplay extends StatelessWidget {
const _UriConnectionDisplay({
required this.simController,
required this.connected,
required this.connectedLabel,
required this.disconnectedLabel,
Expand All @@ -20,7 +19,6 @@ class _UriConnectionDisplay extends StatelessWidget {
@visibleForTesting
static const totalControlsHeight = 45.0;

final SimulatedDevToolsController simController;
final bool connected;
final String connectedLabel;
final String disconnectedLabel;
Expand All @@ -36,14 +34,12 @@ class _UriConnectionDisplay extends StatelessWidget {
height: totalControlsHeight,
child: connected
? _ConnectedDisplay(
simController: simController,
label: connectedLabel,
onDisconnect: onDisconnect,
currentConnection: currentConnection,
help: help,
)
: _DisconnectedDisplay(
simController: simController,
label: disconnectedLabel,
hint: disconnectedHint,
onConnect: onConnect,
Expand All @@ -55,14 +51,12 @@ class _UriConnectionDisplay extends StatelessWidget {

class _ConnectedDisplay extends StatelessWidget {
const _ConnectedDisplay({
required this.simController,
required this.label,
required this.currentConnection,
required this.onDisconnect,
this.help,
});

final SimulatedDevToolsController simController;
final String label;
final String Function() currentConnection;
final VoidCallback onDisconnect;
Expand Down Expand Up @@ -98,14 +92,12 @@ class _ConnectedDisplay extends StatelessWidget {

class _DisconnectedDisplay extends StatefulWidget {
const _DisconnectedDisplay({
required this.simController,
required this.label,
required this.hint,
required this.onConnect,
this.help,
});

final SimulatedDevToolsController simController;
final String label;
final String hint;
final void Function(String) onConnect;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,13 @@ class DTDConnectionDisplay extends StatelessWidget {
required this.onConnectionChange,
});

@visibleForTesting
static const totalControlsHeight = 45.0;
@visibleForTesting
static const totalControlsWidth = 415.0;

final SimulatedDevToolsController simController;
final bool connected;
final Future<void> Function(String?) onConnectionChange;

@override
Widget build(BuildContext context) {
return _UriConnectionDisplay(
simController: simController,
connected: connected,
connectedLabel: 'Dart Tooling Daemon connection: ',
disconnectedLabel: 'Dart Tooling Daemon Connection',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ class VmServiceConnectionDisplay extends StatelessWidget {
required this.connected,
});

@visibleForTesting
static const totalControlsHeight = 45.0;
@visibleForTesting
static const totalControlsWidth = 415.0;

Expand All @@ -23,7 +21,6 @@ class VmServiceConnectionDisplay extends StatelessWidget {
@override
Widget build(BuildContext context) {
return _UriConnectionDisplay(
simController: simController,
connected: connected,
connectedLabel: 'Debugging: ',
disconnectedLabel: 'Dart VM Service Connection',
Expand Down
Loading