updated analysis options
This commit is contained in:
parent
c743fb4b0d
commit
26f0235c98
|
@ -11,3 +11,5 @@ analyzer:
|
|||
errors:
|
||||
deprecated_member_use: ignore
|
||||
deprecated_member_use_from_same_package: ignore
|
||||
unnecessary_cast: ignore
|
||||
unnecessary_import: ignore
|
||||
|
|
|
@ -12,3 +12,13 @@ include: package:flutter_lints/flutter.yaml
|
|||
linter:
|
||||
rules:
|
||||
constant_identifier_names: ignore
|
||||
deprecated_member_use_from_same_package: ignore
|
||||
|
||||
# Additional information about this file can be found at
|
||||
# https://dart.dev/guides/language/analysis-options
|
||||
analyzer:
|
||||
errors:
|
||||
deprecated_member_use: ignore
|
||||
deprecated_member_use_from_same_package: ignore
|
||||
unnecessary_cast: ignore
|
||||
unnecessary_import: ignore
|
||||
|
|
|
@ -11,3 +11,5 @@ analyzer:
|
|||
errors:
|
||||
deprecated_member_use: ignore
|
||||
deprecated_member_use_from_same_package: ignore
|
||||
unnecessary_cast: ignore
|
||||
unnecessary_import: ignore
|
||||
|
|
|
@ -11,3 +11,5 @@ analyzer:
|
|||
errors:
|
||||
deprecated_member_use: ignore
|
||||
deprecated_member_use_from_same_package: ignore
|
||||
unnecessary_cast: ignore
|
||||
unnecessary_import: ignore
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
|
|
@ -56,7 +56,7 @@ class IOSPrintJobController extends PlatformPrintJobController
|
|||
}
|
||||
|
||||
@override
|
||||
Future<void> dismiss({bool animated: true}) async {
|
||||
Future<void> dismiss({bool animated = true}) async {
|
||||
Map<String, dynamic> args = <String, dynamic>{};
|
||||
args.putIfAbsent("animated", () => animated);
|
||||
await channel?.invokeMethod('dismiss', args);
|
||||
|
|
|
@ -11,3 +11,5 @@ analyzer:
|
|||
errors:
|
||||
deprecated_member_use: ignore
|
||||
deprecated_member_use_from_same_package: ignore
|
||||
unnecessary_cast: ignore
|
||||
unnecessary_import: ignore
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
|
|
@ -11,3 +11,5 @@ analyzer:
|
|||
errors:
|
||||
deprecated_member_use: ignore
|
||||
deprecated_member_use_from_same_package: ignore
|
||||
unnecessary_cast: ignore
|
||||
unnecessary_import: ignore
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:flutter_inappwebview_platform_interface/flutter_inappwebview_platform_interface.dart';
|
||||
|
||||
void main() {
|
||||
|
||||
}
|
|
@ -11,3 +11,5 @@ analyzer:
|
|||
errors:
|
||||
deprecated_member_use: ignore
|
||||
deprecated_member_use_from_same_package: ignore
|
||||
unnecessary_cast: ignore
|
||||
unnecessary_import: ignore
|
||||
|
|
|
@ -190,22 +190,30 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
|||
void dispose() => platform.dispose();
|
||||
|
||||
@override
|
||||
Future<FormResubmissionAction?>? androidOnFormResubmission(Uri? url) {}
|
||||
Future<FormResubmissionAction?>? androidOnFormResubmission(Uri? url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void androidOnGeolocationPermissionsHidePrompt() {}
|
||||
|
||||
@override
|
||||
Future<GeolocationPermissionShowPromptResponse?>?
|
||||
androidOnGeolocationPermissionsShowPrompt(String origin) {}
|
||||
androidOnGeolocationPermissionsShowPrompt(String origin) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<JsBeforeUnloadResponse?>? androidOnJsBeforeUnload(
|
||||
JsBeforeUnloadRequest jsBeforeUnloadRequest) {}
|
||||
JsBeforeUnloadRequest jsBeforeUnloadRequest) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<PermissionRequestResponse?>? androidOnPermissionRequest(
|
||||
String origin, List<String> resources) {}
|
||||
String origin, List<String> resources) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void androidOnReceivedIcon(Uint8List icon) {}
|
||||
|
@ -221,42 +229,58 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
|||
|
||||
@override
|
||||
Future<WebViewRenderProcessAction?>? androidOnRenderProcessResponsive(
|
||||
Uri? url) {}
|
||||
Uri? url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<WebViewRenderProcessAction?>? androidOnRenderProcessUnresponsive(
|
||||
Uri? url) {}
|
||||
Uri? url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<SafeBrowsingResponse?>? androidOnSafeBrowsingHit(
|
||||
Uri url, SafeBrowsingThreat? threatType) {}
|
||||
Uri url, SafeBrowsingThreat? threatType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void androidOnScaleChanged(double oldScale, double newScale) {}
|
||||
|
||||
@override
|
||||
Future<WebResourceResponse?>? androidShouldInterceptRequest(
|
||||
WebResourceRequest request) {}
|
||||
WebResourceRequest request) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void iosOnDidReceiveServerRedirectForProvisionalNavigation() {}
|
||||
|
||||
@override
|
||||
Future<IOSNavigationResponseAction?>? iosOnNavigationResponse(
|
||||
IOSWKNavigationResponse navigationResponse) {}
|
||||
IOSWKNavigationResponse navigationResponse) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void iosOnWebContentProcessDidTerminate() {}
|
||||
|
||||
@override
|
||||
Future<IOSShouldAllowDeprecatedTLSAction?>? iosShouldAllowDeprecatedTLS(
|
||||
URLAuthenticationChallenge challenge) {}
|
||||
URLAuthenticationChallenge challenge) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<AjaxRequestAction?>? onAjaxProgress(AjaxRequest ajaxRequest) {}
|
||||
Future<AjaxRequestAction?>? onAjaxProgress(AjaxRequest ajaxRequest) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<AjaxRequestAction?>? onAjaxReadyStateChange(AjaxRequest ajaxRequest) {}
|
||||
Future<AjaxRequestAction?>? onAjaxReadyStateChange(AjaxRequest ajaxRequest) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onBrowserCreated() {}
|
||||
|
@ -275,7 +299,9 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
|||
void onContentSizeChanged(Size oldContentSize, Size newContentSize) {}
|
||||
|
||||
@override
|
||||
Future<bool?>? onCreateWindow(CreateWindowAction createWindowAction) {}
|
||||
Future<bool?>? onCreateWindow(CreateWindowAction createWindowAction) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onDidReceiveServerRedirectForProvisionalNavigation() {}
|
||||
|
@ -300,27 +326,39 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
|||
int activeMatchOrdinal, int numberOfMatches, bool isDoneCounting) {}
|
||||
|
||||
@override
|
||||
Future<FormResubmissionAction?>? onFormResubmission(WebUri? url) {}
|
||||
Future<FormResubmissionAction?>? onFormResubmission(WebUri? url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onGeolocationPermissionsHidePrompt() {}
|
||||
|
||||
@override
|
||||
Future<GeolocationPermissionShowPromptResponse?>?
|
||||
onGeolocationPermissionsShowPrompt(String origin) {}
|
||||
onGeolocationPermissionsShowPrompt(String origin) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<JsAlertResponse?>? onJsAlert(JsAlertRequest jsAlertRequest) {}
|
||||
Future<JsAlertResponse?>? onJsAlert(JsAlertRequest jsAlertRequest) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<JsBeforeUnloadResponse?>? onJsBeforeUnload(
|
||||
JsBeforeUnloadRequest jsBeforeUnloadRequest) {}
|
||||
JsBeforeUnloadRequest jsBeforeUnloadRequest) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<JsConfirmResponse?>? onJsConfirm(JsConfirmRequest jsConfirmRequest) {}
|
||||
Future<JsConfirmResponse?>? onJsConfirm(JsConfirmRequest jsConfirmRequest) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<JsPromptResponse?>? onJsPrompt(JsPromptRequest jsPromptRequest) {}
|
||||
Future<JsPromptResponse?>? onJsPrompt(JsPromptRequest jsPromptRequest) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onLoadError(Uri? url, int code, String message) {}
|
||||
|
@ -332,11 +370,15 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
|||
void onLoadResource(LoadedResource resource) {}
|
||||
|
||||
@override
|
||||
Future<CustomSchemeResponse?>? onLoadResourceCustomScheme(Uri url) {}
|
||||
Future<CustomSchemeResponse?>? onLoadResourceCustomScheme(Uri url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<CustomSchemeResponse?>? onLoadResourceWithCustomScheme(
|
||||
WebResourceRequest request) {}
|
||||
WebResourceRequest request) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onLoadStart(WebUri? url) {}
|
||||
|
@ -353,7 +395,9 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
|||
|
||||
@override
|
||||
Future<NavigationResponseAction?>? onNavigationResponse(
|
||||
NavigationResponse navigationResponse) {}
|
||||
NavigationResponse navigationResponse) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onOverScrolled(int x, int y, bool clampedX, bool clampedY) {}
|
||||
|
@ -363,7 +407,9 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
|||
|
||||
@override
|
||||
Future<PermissionResponse?>? onPermissionRequest(
|
||||
PermissionRequest permissionRequest) {}
|
||||
PermissionRequest permissionRequest) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onPermissionRequestCanceled(PermissionRequest permissionRequest) {}
|
||||
|
@ -373,21 +419,27 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
|||
|
||||
@override
|
||||
Future<bool?>? onPrintRequest(
|
||||
WebUri? url, PlatformPrintJobController? printJobController) {}
|
||||
WebUri? url, PlatformPrintJobController? printJobController) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onProgressChanged(int progress) {}
|
||||
|
||||
@override
|
||||
Future<ClientCertResponse?>? onReceivedClientCertRequest(
|
||||
URLAuthenticationChallenge challenge) {}
|
||||
URLAuthenticationChallenge challenge) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onReceivedError(WebResourceRequest request, WebResourceError error) {}
|
||||
|
||||
@override
|
||||
Future<HttpAuthResponse?>? onReceivedHttpAuthRequest(
|
||||
URLAuthenticationChallenge challenge) {}
|
||||
URLAuthenticationChallenge challenge) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onReceivedHttpError(
|
||||
|
@ -401,7 +453,9 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
|||
|
||||
@override
|
||||
Future<ServerTrustAuthResponse?>? onReceivedServerTrustAuthRequest(
|
||||
URLAuthenticationChallenge challenge) {}
|
||||
URLAuthenticationChallenge challenge) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onReceivedTouchIconUrl(WebUri url, bool precomposed) {}
|
||||
|
@ -410,18 +464,24 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
|||
void onRenderProcessGone(RenderProcessGoneDetail detail) {}
|
||||
|
||||
@override
|
||||
Future<WebViewRenderProcessAction?>? onRenderProcessResponsive(WebUri? url) {}
|
||||
Future<WebViewRenderProcessAction?>? onRenderProcessResponsive(WebUri? url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<WebViewRenderProcessAction?>? onRenderProcessUnresponsive(
|
||||
WebUri? url) {}
|
||||
WebUri? url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onRequestFocus() {}
|
||||
|
||||
@override
|
||||
Future<SafeBrowsingResponse?>? onSafeBrowsingHit(
|
||||
WebUri url, SafeBrowsingThreat? threatType) {}
|
||||
WebUri url, SafeBrowsingThreat? threatType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
void onScrollChanged(int x, int y) {}
|
||||
|
@ -446,20 +506,30 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
|
|||
|
||||
@override
|
||||
Future<ShouldAllowDeprecatedTLSAction?>? shouldAllowDeprecatedTLS(
|
||||
URLAuthenticationChallenge challenge) {}
|
||||
URLAuthenticationChallenge challenge) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<AjaxRequest?>? shouldInterceptAjaxRequest(AjaxRequest ajaxRequest) {}
|
||||
Future<AjaxRequest?>? shouldInterceptAjaxRequest(AjaxRequest ajaxRequest) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<FetchRequest?>? shouldInterceptFetchRequest(
|
||||
FetchRequest fetchRequest) {}
|
||||
FetchRequest fetchRequest) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<WebResourceResponse?>? shouldInterceptRequest(
|
||||
WebResourceRequest request) {}
|
||||
WebResourceRequest request) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<NavigationActionPolicy?>? shouldOverrideUrlLoading(
|
||||
NavigationAction navigationAction) {}
|
||||
NavigationAction navigationAction) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ import 'dart:ui';
|
|||
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_inappwebview_platform_interface/flutter_inappwebview_platform_interface.dart';
|
||||
import '../in_app_browser/in_app_browser.dart';
|
||||
|
||||
///{@macro flutter_inappwebview_platform_interface.PlatformPullToRefreshController}
|
||||
class PullToRefreshController {
|
||||
|
|
Loading…
Reference in New Issue