Skip to content

Commit

Permalink
Remove the legacy Provider screen now that this is shipped as a DevTo…
Browse files Browse the repository at this point in the history
…ols extension (#8364)
  • Loading branch information
kenzieschmoll authored Oct 1, 2024
1 parent 899eb59 commit b554737
Show file tree
Hide file tree
Showing 37 changed files with 59 additions and 7,800 deletions.
11 changes: 3 additions & 8 deletions packages/devtools_app/lib/initialization.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@

import 'package:devtools_app_shared/utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_web_plugins/url_strategy.dart';

import 'src/app.dart';
import 'src/framework/app_error_handling.dart';
import 'src/framework/framework_core.dart';
import 'src/screens/debugger/syntax_highlighter.dart';
import 'src/screens/provider/riverpod_error_logger_observer.dart';
import 'src/shared/analytics/analytics_controller.dart';
import 'src/shared/config_specific/logger/logger_helpers.dart';
import 'src/shared/feature_flags.dart';
Expand Down Expand Up @@ -43,12 +41,9 @@ void runDevTools({

// Run the app.
runApp(
ProviderScope(
observers: const [ErrorLoggerObserver()],
child: DevToolsApp(
screens ?? defaultScreens(sampleData: sampleData),
await analyticsController,
),
DevToolsApp(
screens ?? defaultScreens(sampleData: sampleData),
await analyticsController,
),
);
});
Expand Down
8 changes: 4 additions & 4 deletions packages/devtools_app/lib/src/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ class DevToolsAppState extends State<DevToolsApp> with AutoDisposeMixin {
scaffold = DevToolsScaffold.withChild(
embedMode: embedMode,
child: CenteredMessage(
'No DevTools '
'${queryParams.hideAllExceptExtensions ? 'extensions' : 'screens'} '
'available for your project.',
message: 'No DevTools '
'${queryParams.hideAllExceptExtensions ? 'extensions' : 'screens'} '
'available for your project.',
),
);
} else {
Expand Down Expand Up @@ -426,7 +426,7 @@ class DevToolsAppState extends State<DevToolsApp> with AutoDisposeMixin {
builder: (context, child) {
if (child == null) {
return const CenteredMessage(
'Uh-oh, something went wrong. Please refresh the page.',
message: 'Uh-oh, something went wrong. Please refresh the page.',
);
}
return MultiProvider(
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools_app/lib/src/framework/initializer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class _InitializerState extends State<Initializer>
children: [
const Spacer(),
CenteredMessage(
_showConnectToNewAppButton
message: _showConnectToNewAppButton
? 'Cannot connect to VM service.'
: 'Waiting for VM service connection...',
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ class _AnalysisViewState extends State<AnalysisView>
valueListenable: controller.processingNotifier,
builder: (context, processing, _) {
return processing
? const CenteredMessage(AppSizeScreen.loadingMessage)
? const CenteredMessage(message: AppSizeScreen.loadingMessage)
: Column(
children: [
Flexible(
Expand Down Expand Up @@ -498,7 +498,7 @@ class _DiffViewState extends State<DiffView>
valueListenable: controller.processingNotifier,
builder: (context, processing, _) {
return processing
? const CenteredMessage(AppSizeScreen.loadingMessage)
? const CenteredMessage(message: AppSizeScreen.loadingMessage)
: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class _DeepLinkListViewMainPanel extends StatelessWidget {
case PagePhase.noLinks:
// TODO(hangyujin): This is just a place holder to add UI.
return const CenteredMessage(
'Your Flutter project has no Links to verify.',
message: 'Your Flutter project has no Links to verify.',
);
case PagePhase.analyzeErrorPage:
assert(controller.currentAppLinkSettings?.error != null);
Expand Down Expand Up @@ -125,7 +125,7 @@ class _DeepLinkListViewMainPanel extends StatelessWidget {

case PagePhase.validationErrorPage:
// TODO(hangyujin): This is just a place holder to add Error handling.
return const CenteredMessage('Error validating domain ');
return const CenteredMessage(message: 'Error validating domain ');
}
},
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ class _VisualizeFlexChildrenState extends State<VisualizeFlexChildren> {
}

if (!widget.properties.hasChildren) {
return const CenteredMessage('No Children');
return const CenteredMessage(message: 'No Children');
}

final theme = Theme.of(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class _VisualizeFlexChildrenState extends State<VisualizeFlexChildren> {
}

if (!widget.properties.hasChildren) {
return const CenteredMessage('No Children');
return const CenteredMessage(message: 'No Children');
}

final theme = Theme.of(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class HeapClassDetails extends StatelessWidget {
final data = classData;
if (data == null) {
return const CenteredMessage(
'Click a table row to see retaining paths here.',
message: 'Click a table row to see retaining paths here.',
);
}

Expand All @@ -45,7 +45,7 @@ class HeapClassDetails extends StatelessWidget {
builder: (_, pathData, __) {
if (pathData == null) {
return const CenteredMessage(
'Click a table row to see the detailed path.',
message: 'Click a table row to see the detailed path.',
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class _TabbedPerformanceViewState extends State<TabbedPerformanceView>
controller.flutterFramesController.displayRefreshRate,
)
: const CenteredMessage(
'Select a frame above to view analysis data.',
message: 'Select a frame above to view analysis data.',
),
),
featureController: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class EmptyProfileView extends StatelessWidget {

@override
Widget build(BuildContext context) {
return const CenteredMessage('No CPU samples recorded.');
return const CenteredMessage(message: 'No CPU samples recorded.');
}
}

Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit b554737

Please sign in to comment.