flutter update-packages --force-upgrade (#128908)

- Bumps `vm_service` from `11.6.0` to `11.7.1`
- Bumps `web` from `0.1.3-beta` to `0.1.4-beta` and adds it everywhere.
- Moves `js` from `dependencies` to `dev_dependencies`
This commit is contained in:
Mouad Debbar
2023-06-15 14:17:09 -04:00
committed by GitHub
parent b0188cd182
commit a162d7546a
69 changed files with 245 additions and 226 deletions

View File

@@ -3,7 +3,6 @@
// found in the LICENSE file.
import 'dart:async';
import 'dart:js_interop';
import 'dart:ui_web' as ui_web;
import 'package:flutter/material.dart';
@@ -16,16 +15,16 @@ const String benchmarkViewType = 'benchmark_element';
void _registerFactory() {
ui_web.platformViewRegistry.registerViewFactory(benchmarkViewType, (int viewId) {
final web.HTMLElement htmlElement =
web.document.createElement('div'.toJS) as web.HTMLDivElement;
htmlElement.id = '${benchmarkViewType}_$viewId'.toJS;
htmlElement.innerText = 'Google'.toJS;
web.document.createElement('div') as web.HTMLDivElement;
htmlElement.id = '${benchmarkViewType}_$viewId';
htmlElement.innerText = 'Google';
htmlElement.style
..setProperty('width'.toJS, '100%'.toJS)
..setProperty('height'.toJS, '100%'.toJS)
..setProperty('color'.toJS, 'black'.toJS)
..setProperty('backgroundColor'.toJS, 'rgba(0, 255, 0, .5)'.toJS)
..setProperty('textAlign'.toJS, 'center'.toJS)
..setProperty('border'.toJS, '1px solid black'.toJS);
..setProperty('width', '100%')
..setProperty('height', '100%')
..setProperty('color', 'black')
..setProperty('backgroundColor', 'rgba(0, 255, 0, .5)')
..setProperty('textAlign', 'center')
..setProperty('border', '1px solid black');
return htmlElement;
});
}

View File

@@ -1258,7 +1258,7 @@ void startMeasureFrame(Profile profile) {
if (!profile.isWarmingUp) {
// Tell the browser to mark the beginning of the frame.
web.window.performance.mark('measured_frame_start#$_currentFrameNumber'.toJS);
web.window.performance.mark('measured_frame_start#$_currentFrameNumber');
_isMeasuringFrame = true;
}
}
@@ -1280,11 +1280,11 @@ void endMeasureFrame() {
if (_isMeasuringFrame) {
// Tell the browser to mark the end of the frame, and measure the duration.
web.window.performance.mark('measured_frame_end#$_currentFrameNumber'.toJS);
web.window.performance.mark('measured_frame_end#$_currentFrameNumber');
web.window.performance.measure(
'measured_frame'.toJS,
'measured_frame',
'measured_frame_start#$_currentFrameNumber'.toJS,
'measured_frame_end#$_currentFrameNumber'.toJS,
'measured_frame_end#$_currentFrameNumber',
);
// Increment the current frame number.