code format

This commit is contained in:
Lorenzo Pichilli 2022-11-02 15:08:44 +01:00
parent 6906763796
commit 2f8fa22db4
11 changed files with 17 additions and 19 deletions

View File

@ -16,8 +16,7 @@ void onContentSizeChanged() {
].contains(defaultTargetPlatform); ].contains(defaultTargetPlatform);
testWidgets('onContentSizeChanged', (WidgetTester tester) async { testWidgets('onContentSizeChanged', (WidgetTester tester) async {
final Completer<void> onContentSizeChangedCompleter = final Completer<void> onContentSizeChangedCompleter = Completer<void>();
Completer<void>();
await tester.pumpWidget( await tester.pumpWidget(
Directionality( Directionality(
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,

View File

@ -118,7 +118,7 @@ void onPermissionRequest() {
controller.reload(); controller.reload();
final List<PermissionResourceType> canceledResources = final List<PermissionResourceType> canceledResources =
await onPermissionRequestCancelCompleter.future; await onPermissionRequestCancelCompleter.future;
expect(listEquals(canceledResources, expectedValue), true); expect(listEquals(canceledResources, expectedValue), true);
}, skip: shouldSkip2); }, skip: shouldSkip2);
} }

View File

@ -8,8 +8,8 @@ void main() {
final shouldSkip = kIsWeb final shouldSkip = kIsWeb
? true ? true
: ![ : ![
TargetPlatform.android, TargetPlatform.android,
].contains(defaultTargetPlatform); ].contains(defaultTargetPlatform);
group('Service Worker Controller', () { group('Service Worker Controller', () {
shouldInterceptRequest(); shouldInterceptRequest();

View File

@ -7,8 +7,8 @@ void main() {
final shouldSkip = kIsWeb final shouldSkip = kIsWeb
? true ? true
: ![ : ![
TargetPlatform.android, TargetPlatform.android,
].contains(defaultTargetPlatform); ].contains(defaultTargetPlatform);
group('Tracing Controller', () { group('Tracing Controller', () {
startAndStop(); startAndStop();

View File

@ -55,9 +55,9 @@ void startAndStop() {
await pageLoaded.future; await pageLoaded.future;
Directory appDocDir = await getApplicationDocumentsDirectory(); Directory appDocDir = await getApplicationDocumentsDirectory();
String traceFilePath = '${appDocDir.path}${Platform.pathSeparator}trace.json'; String traceFilePath =
expect( '${appDocDir.path}${Platform.pathSeparator}trace.json';
await tracingController.stop(filePath: traceFilePath), true); expect(await tracingController.stop(filePath: traceFilePath), true);
expect(File(traceFilePath).existsSync(), true); expect(File(traceFilePath).existsSync(), true);

View File

@ -147,7 +147,8 @@ class TracingSettings_ {
assert( assert(
this this
.categories .categories
.map((e) => e.runtimeType is String || e.runtimeType is TracingCategory) .map((e) =>
e.runtimeType is String || e.runtimeType is TracingCategory)
.contains(false), .contains(false),
"categories must contain only String or TracingCategory items"); "categories must contain only String or TracingCategory items");
} }

View File

@ -684,8 +684,7 @@ class HeadlessInAppWebView implements WebView, Disposable {
PermissionRequest permissionRequest)? onPermissionRequestCanceled; PermissionRequest permissionRequest)? onPermissionRequestCanceled;
@override @override
final void Function(InAppWebViewController controller)? final void Function(InAppWebViewController controller)? onRequestFocus;
onRequestFocus;
@override @override
void Function( void Function(

View File

@ -558,8 +558,7 @@ class InAppWebView extends StatefulWidget implements WebView {
PermissionRequest permissionRequest)? onPermissionRequestCanceled; PermissionRequest permissionRequest)? onPermissionRequestCanceled;
@override @override
final void Function(InAppWebViewController controller)? final void Function(InAppWebViewController controller)? onRequestFocus;
onRequestFocus;
@override @override
final void Function( final void Function(

View File

@ -863,8 +863,7 @@ abstract class WebView {
/// ///
///**Supported Platforms/Implementations**: ///**Supported Platforms/Implementations**:
///- Android native WebView ([Official API - WebChromeClient.onRequestFocus](https://developer.android.com/reference/android/webkit/WebChromeClient#onRequestFocus(android.webkit.WebView))) ///- Android native WebView ([Official API - WebChromeClient.onRequestFocus](https://developer.android.com/reference/android/webkit/WebChromeClient#onRequestFocus(android.webkit.WebView)))
final void Function(InAppWebViewController controller)? final void Function(InAppWebViewController controller)? onRequestFocus;
onRequestFocus;
///Use [onWebContentProcessDidTerminate] instead. ///Use [onWebContentProcessDidTerminate] instead.
@Deprecated('Use onWebContentProcessDidTerminate instead') @Deprecated('Use onWebContentProcessDidTerminate instead')

View File

@ -28,7 +28,8 @@ class TracingCategory_ {
///Predefined set of categories for analyzing javascript and rendering issues. ///Predefined set of categories for analyzing javascript and rendering issues.
///Typically includes "blink", "compositor", "gpu", "renderer.scheduler" and "v8" categories. ///Typically includes "blink", "compositor", "gpu", "renderer.scheduler" and "v8" categories.
static const CATEGORIES_JAVASCRIPT_AND_RENDERING = const TracingCategory_._internal(32); static const CATEGORIES_JAVASCRIPT_AND_RENDERING =
const TracingCategory_._internal(32);
///Indicates that there are no predefined categories. ///Indicates that there are no predefined categories.
static const CATEGORIES_NONE = const TracingCategory_._internal(0); static const CATEGORIES_NONE = const TracingCategory_._internal(0);