Skip to content

Commit e958e73

Browse files
committed
Fix analysis errors after rebase on latest
1 parent 182a06f commit e958e73

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

packages/devtools_app/lib/main.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
// @dart=2.9
66

7-
import 'package:devtools_app/src/url_strategy/url_strategy.dart';
87
import 'package:flutter/material.dart';
98
import 'package:flutter_riverpod/flutter_riverpod.dart';
109

packages/devtools_app/lib/src/shared/routing.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class DevToolsRouterDelegate extends RouterDelegate<DevToolsRouteConfiguration>
137137
/// If page and args would be the same, does nothing.
138138
/// Existing arguments (for example &uri=) will be preserved unless
139139
/// overwritten by [argUpdates].
140-
void navigateIfNotCurrent(String page, [Map<String, String>? argUpdates]) {
140+
void navigateIfNotCurrent(String page, [Map<String, String?>? argUpdates]) {
141141
final pageChanged = page != currentConfiguration!.page;
142142
final argsChanged = _changesArgs(argUpdates);
143143
if (!pageChanged && !argsChanged) {
@@ -209,7 +209,7 @@ class DevToolsRouterDelegate extends RouterDelegate<DevToolsRouteConfiguration>
209209

210210
/// Checks whether applying [changes] over the current routes args will result
211211
/// in any changes.
212-
bool _changesArgs(Map<String, String>? changes) => !mapEquals(
212+
bool _changesArgs(Map<String, String?>? changes) => !mapEquals(
213213
{...currentConfiguration!.args, ...?changes},
214214
{...currentConfiguration!.args},
215215
);

packages/devtools_app/lib/src/shared/scaffold.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class DevToolsScaffoldState extends State<DevToolsScaffold>
232232
Router.neglect(context, () {
233233
routerDelegate.navigateIfNotCurrent(
234234
_currentScreen.screenId,
235-
routerDelegate.currentConfiguration.args,
235+
routerDelegate.currentConfiguration?.args,
236236
);
237237
});
238238
});

0 commit comments

Comments
 (0)