Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
pichillilorenzo committed Nov 2, 2022
1 parent 6906763 commit 2f8fa22
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ void onContentSizeChanged() {
].contains(defaultTargetPlatform);

testWidgets('onContentSizeChanged', (WidgetTester tester) async {
final Completer<void> onContentSizeChangedCompleter =
Completer<void>();
final Completer<void> onContentSizeChangedCompleter = Completer<void>();
await tester.pumpWidget(
Directionality(
textDirection: TextDirection.ltr,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void onPermissionRequest() {
controller.reload();

final List<PermissionResourceType> canceledResources =
await onPermissionRequestCancelCompleter.future;
await onPermissionRequestCancelCompleter.future;
expect(listEquals(canceledResources, expectedValue), true);
}, skip: shouldSkip2);
}
4 changes: 2 additions & 2 deletions example/integration_test/service_worker_controller/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ void main() {
final shouldSkip = kIsWeb
? true
: ![
TargetPlatform.android,
].contains(defaultTargetPlatform);
TargetPlatform.android,
].contains(defaultTargetPlatform);

group('Service Worker Controller', () {
shouldInterceptRequest();
Expand Down
4 changes: 2 additions & 2 deletions example/integration_test/tracing_controller/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ void main() {
final shouldSkip = kIsWeb
? true
: ![
TargetPlatform.android,
].contains(defaultTargetPlatform);
TargetPlatform.android,
].contains(defaultTargetPlatform);

group('Tracing Controller', () {
startAndStop();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ void startAndStop() {
await pageLoaded.future;

Directory appDocDir = await getApplicationDocumentsDirectory();
String traceFilePath = '${appDocDir.path}${Platform.pathSeparator}trace.json';
expect(
await tracingController.stop(filePath: traceFilePath), true);
String traceFilePath =
'${appDocDir.path}${Platform.pathSeparator}trace.json';
expect(await tracingController.stop(filePath: traceFilePath), true);

expect(File(traceFilePath).existsSync(), true);

Expand Down
3 changes: 2 additions & 1 deletion lib/src/android/tracing_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ class TracingSettings_ {
assert(
this
.categories
.map((e) => e.runtimeType is String || e.runtimeType is TracingCategory)
.map((e) =>
e.runtimeType is String || e.runtimeType is TracingCategory)
.contains(false),
"categories must contain only String or TracingCategory items");
}
Expand Down
3 changes: 1 addition & 2 deletions lib/src/in_app_webview/headless_in_app_webview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,7 @@ class HeadlessInAppWebView implements WebView, Disposable {
PermissionRequest permissionRequest)? onPermissionRequestCanceled;

@override
final void Function(InAppWebViewController controller)?
onRequestFocus;
final void Function(InAppWebViewController controller)? onRequestFocus;

@override
void Function(
Expand Down
3 changes: 1 addition & 2 deletions lib/src/in_app_webview/in_app_webview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,7 @@ class InAppWebView extends StatefulWidget implements WebView {
PermissionRequest permissionRequest)? onPermissionRequestCanceled;

@override
final void Function(InAppWebViewController controller)?
onRequestFocus;
final void Function(InAppWebViewController controller)? onRequestFocus;

@override
final void Function(
Expand Down
3 changes: 1 addition & 2 deletions lib/src/in_app_webview/webview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -863,8 +863,7 @@ abstract class WebView {
///
///**Supported Platforms/Implementations**:
///- Android native WebView ([Official API - WebChromeClient.onRequestFocus](https://developer.android.com/reference/android/webkit/WebChromeClient#onRequestFocus(android.webkit.WebView)))
final void Function(InAppWebViewController controller)?
onRequestFocus;
final void Function(InAppWebViewController controller)? onRequestFocus;

///Use [onWebContentProcessDidTerminate] instead.
@Deprecated('Use onWebContentProcessDidTerminate instead')
Expand Down
2 changes: 1 addition & 1 deletion lib/src/types/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,4 @@ export 'ui_image.dart' show UIImage;
export 'activity_button.dart' show ActivityButton;
export 'ui_event_attribution.dart' show UIEventAttribution;
export 'tracing_mode.dart' show TracingMode;
export 'tracing_category.dart' show TracingCategory;
export 'tracing_category.dart' show TracingCategory;
3 changes: 2 additions & 1 deletion lib/src/types/tracing_category.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class TracingCategory_ {

///Predefined set of categories for analyzing javascript and rendering issues.
///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.
static const CATEGORIES_NONE = const TracingCategory_._internal(0);
Expand Down

0 comments on commit 2f8fa22

Please sign in to comment.