Skip to content

Commit

Permalink
[devtools_app] Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Nov 21, 2023
1 parent 20f3dc6 commit a3b0df9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions packages/devtools_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ dependencies:
# Pin ansicolor to version before pre-NNBD version 1.1.0, should be ^1.0.5
# See https://github.com/flutter/devtools/issues/2530
ansicolor: ^2.0.0
# TODO: https://github.com/flutter/devtools/issues/4728 - remove constraint when archive is fixed
archive: <3.3.3
async: ^2.0.0
clock: ^1.1.1
codicon: ^1.0.0
Expand All @@ -43,7 +41,7 @@ dependencies:
flutter_web_plugins:
sdk: flutter
http: ^1.1.0
image: ^3.0.2
image: ^4.1.3
intl: ^0.18.0
js: ^0.6.1+1
json_rpc_2: ^3.0.2
Expand Down
5 changes: 3 additions & 2 deletions packages/devtools_app/test_driver/integration_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// ignore_for_file: avoid_print

import 'dart:io';
import 'dart:typed_data';

import 'package:collection/collection.dart';
import 'package:flutter_driver/flutter_driver.dart';
Expand Down Expand Up @@ -95,9 +96,9 @@ Future<void> main() async {
);
}

double _percentDiff(List<int> goldenBytes, List<int> screenshotBytes) {
double _percentDiff(Uint8List goldenBytes, List<int> screenshotBytes) {
final goldenImage = decodeImage(goldenBytes);
final screenshotImage = decodeImage(screenshotBytes);
final screenshotImage = decodeImage(Uint8List.fromList(screenshotBytes));
if (goldenImage == null || screenshotImage == null) {
print('Cannot decode one or both of the golden images.');
return _defaultDiffPercentage;
Expand Down

0 comments on commit a3b0df9

Please sign in to comment.