Skip to content

Commit

Permalink
Upgrade some dependencies (#7642)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzieschmoll authored Apr 23, 2024
1 parent fe4b6d4 commit bc1af40
Show file tree
Hide file tree
Showing 123 changed files with 446 additions and 598 deletions.
3 changes: 1 addition & 2 deletions packages/devtools_app/lib/src/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,7 @@ typedef UrlParametersBuilder = Widget Function(
/// This avoids issues with widgets in the appbar being hidden by the banner
/// in a web or desktop app.
class _AlternateCheckedModeBanner extends StatelessWidget {
const _AlternateCheckedModeBanner({Key? key, required this.builder})
: super(key: key);
const _AlternateCheckedModeBanner({required this.builder});
final WidgetBuilder builder;

@override
Expand Down
3 changes: 1 addition & 2 deletions packages/devtools_app/lib/src/extensions/embedded/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import 'controller.dart';
/// When DevTools is run on Desktop for development, this widget displays a
/// placeholder, since Flutter Desktop does not currently support web views.
class EmbeddedExtensionView extends StatefulWidget {
const EmbeddedExtensionView({Key? key, required this.controller})
: super(key: key);
const EmbeddedExtensionView({super.key, required this.controller});

final EmbeddedExtensionController controller;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ import '../shared/globals.dart';
/// A [ScaffoldAction] that, when clicked, will open a dialog menu for
/// managing DevTools extension states.
class ExtensionSettingsAction extends ScaffoldAction {
ExtensionSettingsAction({super.key, Color? color})
ExtensionSettingsAction({super.key, super.color})
: super(
icon: Icons.extension_outlined,
tooltip: 'DevTools Extensions',
color: color,
onPressed: (context) {
unawaited(
showDialog(
Expand Down
9 changes: 4 additions & 5 deletions packages/devtools_app/lib/src/framework/about_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class DevToolsAboutDialog extends StatelessWidget {
}

class _FeedbackLink extends StatelessWidget {
const _FeedbackLink({Key? key}) : super(key: key);
const _FeedbackLink();

@override
Widget build(BuildContext context) {
Expand All @@ -90,7 +90,7 @@ class _FeedbackLink extends StatelessWidget {
}

class _ContributingLink extends StatelessWidget {
const _ContributingLink({Key? key}) : super(key: key);
const _ContributingLink();

static const _contributingGuideUrl =
'https://github.com/flutter/devtools/blob/master/CONTRIBUTING.md';
Expand All @@ -112,7 +112,7 @@ class _ContributingLink extends StatelessWidget {
}

class _DiscordLink extends StatelessWidget {
const _DiscordLink({Key? key}) : super(key: key);
const _DiscordLink();

static const _discordWikiUrl = 'https://github.com/flutter/flutter/wiki/Chat';

Expand All @@ -133,11 +133,10 @@ class _DiscordLink extends StatelessWidget {
}

class OpenAboutAction extends ScaffoldAction {
OpenAboutAction({super.key, Color? color})
OpenAboutAction({super.key, super.color})
: super(
icon: Icons.help_outline,
tooltip: 'About DevTools',
color: color,
onPressed: (context) {
unawaited(
showDialog(
Expand Down
8 changes: 4 additions & 4 deletions packages/devtools_app/lib/src/framework/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ class ConnectionSection extends StatelessWidget {

class LandingScreenSection extends StatelessWidget {
const LandingScreenSection({
Key? key,
super.key,
required this.title,
required this.child,
this.actions = const [],
}) : super(key: key);
});

final String title;

Expand Down Expand Up @@ -152,7 +152,7 @@ class LandingScreenSection extends StatelessWidget {
}

class ConnectInput extends StatefulWidget {
const ConnectInput({Key? key}) : super(key: key);
const ConnectInput({super.key});

@override
State<ConnectInput> createState() => _ConnectInputState();
Expand Down Expand Up @@ -302,7 +302,7 @@ class _ConnectInputState extends State<ConnectInput> with BlockingActionMixin {

@visibleForTesting
class MemoryAnalysisInstructions extends StatelessWidget {
const MemoryAnalysisInstructions({Key? key}) : super(key: key);
const MemoryAnalysisInstructions({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions packages/devtools_app/lib/src/framework/initializer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ final _log = Logger('initializer');
/// here.
class Initializer extends StatefulWidget {
const Initializer({
Key? key,
super.key,
required this.url,
required this.builder,
this.allowConnectionScreenOnDisconnect = true,
}) : super(key: key);
});

/// The builder for the widget's children.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final _notificationWidth = _notificationHeight * goldenRatio;

/// Manager for notifications in the app.
class NotificationsView extends StatelessWidget {
const NotificationsView({Key? key, required this.child}) : super(key: key);
const NotificationsView({super.key, required this.child});

final Widget child;

Expand All @@ -43,7 +43,7 @@ class NotificationsView extends StatelessWidget {
/// in _NotificationsState.build because there would be no Overlay in the tree
/// at the time Overlay.of(context) is called.
class _Notifications extends StatefulWidget {
const _Notifications({Key? key, required this.child}) : super(key: key);
const _Notifications({required this.child});

final Widget child;

Expand Down Expand Up @@ -180,10 +180,9 @@ class _NotificationOverlay extends StatelessWidget {

class _Notification extends StatefulWidget {
const _Notification({
Key? key,
required this.message,
required this.remove,
}) : super(key: key);
});

final NotificationMessage message;
final void Function(_Notification) remove;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ final _flutterDocsSite = Uri.https('docs.flutter.dev');
class ReleaseNotesViewer extends SidePanelViewer {
const ReleaseNotesViewer({
required super.controller,
Widget? child,
super.child,
}) : super(
key: releaseNotesKey,
title: 'What\'s new in DevTools?',
textIfMarkdownDataEmpty: 'Stay tuned for updates.',
child: child,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ import '../shared/globals.dart';
/// Button that, when clicked, will open the DevTools issue tracker in the
/// browser.
class ReportFeedbackButton extends ScaffoldAction {
ReportFeedbackButton({super.key, Color? color})
ReportFeedbackButton({super.key, super.color})
: super(
icon: Icons.bug_report_outlined,
tooltip: 'Report feedback',
color: color,
onPressed: (_) {
ga.select(
gac.devToolsMain,
Expand Down
5 changes: 2 additions & 3 deletions packages/devtools_app/lib/src/framework/scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@ import 'status_line.dart';
/// for different routes.
class DevToolsScaffold extends StatefulWidget {
DevToolsScaffold({
Key? key,
super.key,
required this.screens,
this.page,
List<Widget>? actions,
this.embed = false,
}) : actions = actions ?? defaultActions(),
super(key: key);
}) : actions = actions ?? defaultActions();

DevToolsScaffold.withChild({
Key? key,
Expand Down
3 changes: 1 addition & 2 deletions packages/devtools_app/lib/src/framework/settings_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ import '../shared/log_storage.dart';
import '../shared/server/server.dart';

class OpenSettingsAction extends ScaffoldAction {
OpenSettingsAction({super.key, Color? color})
OpenSettingsAction({super.key, super.color})
: super(
icon: Icons.settings_outlined,
tooltip: 'Settings',
color: color,
onPressed: (context) {
unawaited(
showDialog(
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools_app/lib/src/framework/status_line.dart
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class VideoTutorialLink extends StatelessWidget {
}

class IsolateSelector extends StatelessWidget {
const IsolateSelector({Key? key}) : super(key: key);
const IsolateSelector({super.key});

@override
Widget build(BuildContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ double get executableLineRadius => scaleByFontFactor(1.5);
double get breakpointRadius => scaleByFontFactor(6.0);

class Breakpoints extends StatefulWidget {
const Breakpoints({Key? key}) : super(key: key);
const Breakpoints({super.key});

@override
State<Breakpoints> createState() => _BreakpointsState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import 'debugger_controller.dart';
import 'debugger_model.dart';

class CallStack extends StatefulWidget {
const CallStack({Key? key}) : super(key: key);
const CallStack({super.key});

@override
State<CallStack> createState() => _CallStackState();
Expand Down
20 changes: 10 additions & 10 deletions packages/devtools_app/lib/src/screens/debugger/codeview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ final debuggerCodeViewFileOpenerKey =
// controller.
class CodeView extends StatefulWidget {
const CodeView({
Key? key,
super.key,
required this.codeViewController,
required this.scriptRef,
required this.parsedScript,
Expand All @@ -55,7 +55,7 @@ class CodeView extends StatefulWidget {
this.initialPosition,
this.onSelected,
this.enableHistory = true,
}) : super(key: key);
});

static const debuggerCodeViewHorizontalScrollbarKey =
Key('debuggerCodeViewHorizontalScrollbarKey');
Expand Down Expand Up @@ -668,9 +668,9 @@ class _ProfileInformationGutterHeader extends StatelessWidget {

class ProfileInformationGutterItem extends StatelessWidget {
const ProfileInformationGutterItem({
Key? key,
super.key,
required this.profilerData,
}) : super(key: key);
});

final ProfileReportEntry profilerData;

Expand Down Expand Up @@ -920,15 +920,15 @@ class Gutter extends StatelessWidget {

class GutterItem extends StatelessWidget {
const GutterItem({
Key? key,
super.key,
required this.lineNumber,
required this.isBreakpoint,
required this.isExecutable,
required this.isPausedHere,
required this.onPressed,
required this.allowInteraction,
required this.coverageHit,
}) : super(key: key);
});

final int lineNumber;

Expand Down Expand Up @@ -1020,7 +1020,7 @@ class GutterItem extends StatelessWidget {

class Lines extends StatefulWidget {
const Lines({
Key? key,
super.key,
required this.height,
required this.codeViewController,
required this.scrollController,
Expand All @@ -1029,7 +1029,7 @@ class Lines extends StatefulWidget {
required this.activeSearchMatchNotifier,
required this.selectedFrameNotifier,
required this.showProfileInformation,
}) : super(key: key);
});

final double height;
final CodeViewController codeViewController;
Expand Down Expand Up @@ -1157,13 +1157,13 @@ class _LinesState extends State<Lines> with AutoDisposeMixin {

class LineItem extends StatefulWidget {
const LineItem({
Key? key,
super.key,
required this.lineContents,
this.pausedFrame,
this.focused = false,
this.searchMatches,
this.activeSearchMatch,
}) : super(key: key);
});

static double get _hoverWidth => scaleByFontFactor(400.0);

Expand Down
6 changes: 3 additions & 3 deletions packages/devtools_app/lib/src/screens/debugger/controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import '../../shared/utils.dart';
import 'debugger_controller.dart';

class DebuggingControls extends StatefulWidget {
const DebuggingControls({Key? key}) : super(key: key);
const DebuggingControls({super.key});

static const minWidthBeforeScaling = 1750.0;

Expand Down Expand Up @@ -235,9 +235,9 @@ class _CodeStatsControl extends StatelessWidget {

class BreakOnExceptionsControl extends StatelessWidget {
const BreakOnExceptionsControl({
Key? key,
super.key,
required this.controller,
}) : super(key: key);
});

final DebuggerController controller;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ abstract class BreakpointAndSourcePosition

class _BreakpointAndSourcePositionResolved extends BreakpointAndSourcePosition {
_BreakpointAndSourcePositionResolved(
Breakpoint breakpoint,
SourcePosition? sourcePosition,
super.breakpoint,
super.sourcePosition,
this.location,
) : super._(breakpoint, sourcePosition);
) : super._();

final SourceLocation location;

Expand All @@ -162,10 +162,10 @@ class _BreakpointAndSourcePositionResolved extends BreakpointAndSourcePosition {
class _BreakpointAndSourcePositionUnresolved
extends BreakpointAndSourcePosition {
_BreakpointAndSourcePositionUnresolved(
Breakpoint breakpoint,
SourcePosition? sourcePosition,
super.breakpoint,
super.sourcePosition,
this.location,
) : super._(breakpoint, sourcePosition);
) : super._();

final UnresolvedSourceLocation location;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,9 @@ class OpenFileAction extends Action<OpenFileIntent> {

class DebuggerStatus extends StatefulWidget {
const DebuggerStatus({
Key? key,
super.key,
required this.controller,
}) : super(key: key);
});

final DebuggerController controller;

Expand Down
10 changes: 3 additions & 7 deletions packages/devtools_app/lib/src/screens/debugger/file_search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -359,14 +359,10 @@ class FileSearchResults {
? allScripts.map((script) => AutoCompleteMatch(script.uri!)).toList()
: [
..._exactFileNameMatches
.map(query.createExactFileNameAutoCompleteMatch)
.toList(),
.map(query.createExactFileNameAutoCompleteMatch),
..._exactFullPathMatches
.map(query.createExactFullPathAutoCompleteMatch)
.toList(),
..._fuzzyMatches
.map(query.createFuzzyMatchAutoCompleteMatch)
.toList(),
.map(query.createExactFullPathAutoCompleteMatch),
..._fuzzyMatches.map(query.createFuzzyMatchAutoCompleteMatch),
];

FileSearchResults copyWith({
Expand Down
Loading

0 comments on commit bc1af40

Please sign in to comment.