fixed settings fromMap methods

This commit is contained in:
Lorenzo Pichilli 2022-04-20 03:59:39 +02:00
parent c004325af7
commit 6fef6906a9
5 changed files with 222 additions and 214 deletions

View File

@ -1,18 +0,0 @@
#
# NOTE: This podspec is NOT to be published. It is only used as a local source!
# This is a generated file; do not edit or check into version control.
#
Pod::Spec.new do |s|
s.name = 'Flutter'
s.version = '1.0.0'
s.summary = 'High-performance, high-fidelity mobile apps.'
s.homepage = 'https://flutter.io'
s.license = { :type => 'MIT' }
s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
s.ios.deployment_target = '9.0'
# Framework linking is handled by Flutter tooling, not CocoaPods.
# Add a placeholder to satisfy `s.dependency 'Flutter'` plugin podspecs.
s.vendored_frameworks = 'path/to/nothing'
end

View File

@ -3,12 +3,11 @@
export "FLUTTER_ROOT=/Users/lorenzopichilli/fvm/versions/2.10.4" export "FLUTTER_ROOT=/Users/lorenzopichilli/fvm/versions/2.10.4"
export "FLUTTER_APPLICATION_PATH=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example" export "FLUTTER_APPLICATION_PATH=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example"
export "COCOAPODS_PARALLEL_CODE_SIGN=true" export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_TARGET=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example/lib/main.dart" export "FLUTTER_TARGET=lib/main.dart"
export "FLUTTER_BUILD_DIR=build" export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=1.0.0" export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1" export "FLUTTER_BUILD_NUMBER=1"
export "DART_DEFINES=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ=="
export "DART_OBFUSCATION=false" export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=true" export "TRACK_WIDGET_CREATION=false"
export "TREE_SHAKE_ICONS=false" export "TREE_SHAKE_ICONS=false"
export "PACKAGE_CONFIG=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example/.dart_tool/package_config.json" export "PACKAGE_CONFIG=.packages"

View File

@ -1,3 +1,4 @@
import 'dart:io';
import 'dart:ui'; import 'dart:ui';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
@ -225,31 +226,47 @@ class ChromeSafariBrowserSettings implements ChromeSafariBrowserOptions {
} }
static ChromeSafariBrowserSettings fromMap(Map<String, dynamic> map) { static ChromeSafariBrowserSettings fromMap(Map<String, dynamic> map) {
ChromeSafariBrowserSettings options = new ChromeSafariBrowserSettings(); ChromeSafariBrowserSettings settings = new ChromeSafariBrowserSettings();
options.shareState = map["shareState"]; if (Platform.isAndroid) {
options.showTitle = map["showTitle"]; settings.shareState = map["shareState"];
options.toolbarBackgroundColor = settings.showTitle = map["showTitle"];
UtilColor.fromHex(map["toolbarBackgroundColor"]); settings.toolbarBackgroundColor =
options.enableUrlBarHiding = map["enableUrlBarHiding"]; UtilColor.fromHex(map["toolbarBackgroundColor"]);
options.instantAppsEnabled = map["instantAppsEnabled"]; settings.enableUrlBarHiding = map["enableUrlBarHiding"];
options.packageName = map["packageName"]; settings.instantAppsEnabled = map["instantAppsEnabled"];
options.keepAliveEnabled = map["keepAliveEnabled"]; settings.packageName = map["packageName"];
options.isSingleInstance = map["isSingleInstance"]; settings.keepAliveEnabled = map["keepAliveEnabled"];
options.noHistory = map["noHistory"]; settings.isSingleInstance = map["isSingleInstance"];
options.isTrustedWebActivity = map["isTrustedWebActivity"]; settings.noHistory = map["noHistory"];
options.additionalTrustedOrigins = map["additionalTrustedOrigins"]; settings.isTrustedWebActivity = map["isTrustedWebActivity"];
switch (map["displayMode"]["type"]) { settings.additionalTrustedOrigins = map["additionalTrustedOrigins"];
case "IMMERSIVE_MODE": switch (map["displayMode"]["type"]) {
options.displayMode = case "IMMERSIVE_MODE":
TrustedWebActivityImmersiveDisplayMode.fromMap(map["displayMode"]); settings.displayMode =
break; TrustedWebActivityImmersiveDisplayMode.fromMap(map["displayMode"]);
case "DEFAULT_MODE": break;
default: case "DEFAULT_MODE":
options.displayMode = TrustedWebActivityDefaultDisplayMode(); default:
break; settings.displayMode = TrustedWebActivityDefaultDisplayMode();
break;
}
settings.screenOrientation = map["screenOrientation"];
} }
options.screenOrientation = map["screenOrientation"]; if (Platform.isIOS || Platform.isMacOS) {
return options; settings.entersReaderIfAvailable = map["entersReaderIfAvailable"];
settings.barCollapsingEnabled = map["barCollapsingEnabled"];
settings.dismissButtonStyle =
DismissButtonStyle.fromValue(map["dismissButtonStyle"])!;
settings.preferredBarTintColor =
UtilColor.fromHex(map["preferredBarTintColor"]);
settings.preferredControlTintColor =
UtilColor.fromHex(map["preferredControlTintColor"]);
settings.presentationStyle =
ModalPresentationStyle.fromValue(map["presentationStyle"])!;
settings.transitionStyle =
ModalTransitionStyle.fromValue(map["transitionStyle"])!;
}
return settings;
} }
@override @override

View File

@ -1,3 +1,4 @@
import 'dart:io';
import 'dart:ui'; import 'dart:ui';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
@ -273,35 +274,39 @@ class InAppBrowserSettings
} }
static InAppBrowserSettings fromMap(Map<String, dynamic> map) { static InAppBrowserSettings fromMap(Map<String, dynamic> map) {
var instance = InAppBrowserSettings(); var settings = InAppBrowserSettings();
instance.hidden = map["hidden"]; settings.hidden = map["hidden"];
instance.hideToolbarTop = map["hideToolbarTop"]; settings.hideToolbarTop = map["hideToolbarTop"];
instance.toolbarTopBackgroundColor = settings.toolbarTopBackgroundColor =
UtilColor.fromHex(map["toolbarTopBackgroundColor"]); UtilColor.fromHex(map["toolbarTopBackgroundColor"]);
instance.hideUrlBar = map["hideUrlBar"]; settings.hideUrlBar = map["hideUrlBar"];
instance.hideProgressBar = map["hideProgressBar"]; settings.hideProgressBar = map["hideProgressBar"];
instance.hideTitleBar = map["hideTitleBar"]; if (Platform.isAndroid) {
instance.toolbarTopFixedTitle = map["toolbarTopFixedTitle"]; settings.hideTitleBar = map["hideTitleBar"];
instance.closeOnCannotGoBack = map["closeOnCannotGoBack"]; settings.toolbarTopFixedTitle = map["toolbarTopFixedTitle"];
instance.allowGoBackWithBackButton = map["allowGoBackWithBackButton"]; settings.closeOnCannotGoBack = map["closeOnCannotGoBack"];
instance.shouldCloseOnBackButtonPressed = settings.allowGoBackWithBackButton = map["allowGoBackWithBackButton"];
map["shouldCloseOnBackButtonPressed"]; settings.shouldCloseOnBackButtonPressed =
instance.toolbarTopTranslucent = map["toolbarTopTranslucent"]; map["shouldCloseOnBackButtonPressed"];
instance.toolbarTopTintColor = }
UtilColor.fromHex(map["toolbarTopTintColor"]); if (Platform.isIOS || Platform.isMacOS) {
instance.hideToolbarBottom = map["hideToolbarBottom"]; settings.toolbarTopTranslucent = map["toolbarTopTranslucent"];
instance.toolbarBottomBackgroundColor = settings.toolbarTopTintColor =
UtilColor.fromHex(map["toolbarBottomBackgroundColor"]); UtilColor.fromHex(map["toolbarTopTintColor"]);
instance.toolbarBottomTintColor = settings.hideToolbarBottom = map["hideToolbarBottom"];
UtilColor.fromHex(map["toolbarBottomTintColor"]); settings.toolbarBottomBackgroundColor =
instance.toolbarBottomTranslucent = map["toolbarBottomTranslucent"]; UtilColor.fromHex(map["toolbarBottomBackgroundColor"]);
instance.closeButtonCaption = map["closeButtonCaption"]; settings.toolbarBottomTintColor =
instance.closeButtonColor = UtilColor.fromHex(map["closeButtonColor"]); UtilColor.fromHex(map["toolbarBottomTintColor"]);
instance.presentationStyle = settings.toolbarBottomTranslucent = map["toolbarBottomTranslucent"];
ModalPresentationStyle.fromValue(map["presentationStyle"])!; settings.closeButtonCaption = map["closeButtonCaption"];
instance.transitionStyle = settings.closeButtonColor = UtilColor.fromHex(map["closeButtonColor"]);
ModalTransitionStyle.fromValue(map["transitionStyle"])!; settings.presentationStyle =
return instance; ModalPresentationStyle.fromValue(map["presentationStyle"])!;
settings.transitionStyle =
ModalTransitionStyle.fromValue(map["transitionStyle"])!;
}
return settings;
} }
@override @override

View File

@ -1,3 +1,4 @@
import 'dart:io';
import 'dart:ui'; import 'dart:ui';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
@ -1232,153 +1233,157 @@ class InAppWebViewSettings
} }
}); });
var instance = InAppWebViewSettings(); var settings = InAppWebViewSettings();
instance.useShouldOverrideUrlLoading = map["useShouldOverrideUrlLoading"]; settings.useShouldOverrideUrlLoading = map["useShouldOverrideUrlLoading"];
instance.useOnLoadResource = map["useOnLoadResource"]; settings.useOnLoadResource = map["useOnLoadResource"];
instance.useOnDownloadStart = map["useOnDownloadStart"]; settings.useOnDownloadStart = map["useOnDownloadStart"];
instance.clearCache = map["clearCache"]; settings.clearCache = map["clearCache"];
instance.userAgent = map["userAgent"]; settings.userAgent = map["userAgent"];
instance.applicationNameForUserAgent = map["applicationNameForUserAgent"]; settings.applicationNameForUserAgent = map["applicationNameForUserAgent"];
instance.javaScriptEnabled = map["javaScriptEnabled"]; settings.javaScriptEnabled = map["javaScriptEnabled"];
instance.javaScriptCanOpenWindowsAutomatically = settings.javaScriptCanOpenWindowsAutomatically =
map["javaScriptCanOpenWindowsAutomatically"]; map["javaScriptCanOpenWindowsAutomatically"];
instance.mediaPlaybackRequiresUserGesture = settings.mediaPlaybackRequiresUserGesture =
map["mediaPlaybackRequiresUserGesture"]; map["mediaPlaybackRequiresUserGesture"];
instance.verticalScrollBarEnabled = map["verticalScrollBarEnabled"]; settings.verticalScrollBarEnabled = map["verticalScrollBarEnabled"];
instance.horizontalScrollBarEnabled = map["horizontalScrollBarEnabled"]; settings.horizontalScrollBarEnabled = map["horizontalScrollBarEnabled"];
instance.resourceCustomSchemes = settings.resourceCustomSchemes =
List<String>.from(map["resourceCustomSchemes"] ?? []); List<String>.from(map["resourceCustomSchemes"] ?? []);
instance.contentBlockers = contentBlockers; settings.contentBlockers = contentBlockers;
instance.preferredContentMode = settings.preferredContentMode =
UserPreferredContentMode.fromValue(map["preferredContentMode"]); UserPreferredContentMode.fromValue(map["preferredContentMode"]);
instance.useShouldInterceptAjaxRequest = settings.useShouldInterceptAjaxRequest =
map["useShouldInterceptAjaxRequest"]; map["useShouldInterceptAjaxRequest"];
instance.useShouldInterceptFetchRequest = settings.useShouldInterceptFetchRequest =
map["useShouldInterceptFetchRequest"]; map["useShouldInterceptFetchRequest"];
instance.incognito = map["incognito"]; settings.incognito = map["incognito"];
instance.cacheEnabled = map["cacheEnabled"]; settings.cacheEnabled = map["cacheEnabled"];
instance.transparentBackground = map["transparentBackground"]; settings.transparentBackground = map["transparentBackground"];
instance.disableVerticalScroll = map["disableVerticalScroll"]; settings.disableVerticalScroll = map["disableVerticalScroll"];
instance.disableHorizontalScroll = map["disableHorizontalScroll"]; settings.disableHorizontalScroll = map["disableHorizontalScroll"];
instance.disableContextMenu = map["disableContextMenu"]; settings.disableContextMenu = map["disableContextMenu"];
instance.supportZoom = map["supportZoom"]; settings.supportZoom = map["supportZoom"];
instance.allowFileAccessFromFileURLs = map["allowFileAccessFromFileURLs"]; settings.allowFileAccessFromFileURLs = map["allowFileAccessFromFileURLs"];
instance.allowUniversalAccessFromFileURLs = settings.allowUniversalAccessFromFileURLs =
map["allowUniversalAccessFromFileURLs"]; map["allowUniversalAccessFromFileURLs"];
instance.textZoom = map["textZoom"]; if (Platform.isAndroid) {
instance.clearSessionCache = map["clearSessionCache"]; settings.textZoom = map["textZoom"];
instance.builtInZoomControls = map["builtInZoomControls"]; settings.clearSessionCache = map["clearSessionCache"];
instance.displayZoomControls = map["displayZoomControls"]; settings.builtInZoomControls = map["builtInZoomControls"];
instance.databaseEnabled = map["databaseEnabled"]; settings.displayZoomControls = map["displayZoomControls"];
instance.domStorageEnabled = map["domStorageEnabled"]; settings.databaseEnabled = map["databaseEnabled"];
instance.useWideViewPort = map["useWideViewPort"]; settings.domStorageEnabled = map["domStorageEnabled"];
instance.safeBrowsingEnabled = map["safeBrowsingEnabled"]; settings.useWideViewPort = map["useWideViewPort"];
instance.mixedContentMode = settings.safeBrowsingEnabled = map["safeBrowsingEnabled"];
MixedContentMode.fromValue(map["mixedContentMode"]); settings.mixedContentMode =
instance.allowContentAccess = map["allowContentAccess"]; MixedContentMode.fromValue(map["mixedContentMode"]);
instance.allowFileAccess = map["allowFileAccess"]; settings.allowContentAccess = map["allowContentAccess"];
instance.appCachePath = map["appCachePath"]; settings.allowFileAccess = map["allowFileAccess"];
instance.blockNetworkImage = map["blockNetworkImage"]; settings.appCachePath = map["appCachePath"];
instance.blockNetworkLoads = map["blockNetworkLoads"]; settings.blockNetworkImage = map["blockNetworkImage"];
instance.cacheMode = CacheMode.fromValue(map["cacheMode"]); settings.blockNetworkLoads = map["blockNetworkLoads"];
instance.cursiveFontFamily = map["cursiveFontFamily"]; settings.cacheMode = CacheMode.fromValue(map["cacheMode"]);
instance.defaultFixedFontSize = map["defaultFixedFontSize"]; settings.cursiveFontFamily = map["cursiveFontFamily"];
instance.defaultFontSize = map["defaultFontSize"]; settings.defaultFixedFontSize = map["defaultFixedFontSize"];
instance.defaultTextEncodingName = map["defaultTextEncodingName"]; settings.defaultFontSize = map["defaultFontSize"];
instance.disabledActionModeMenuItems = settings.defaultTextEncodingName = map["defaultTextEncodingName"];
ActionModeMenuItem.fromValue(map["disabledActionModeMenuItems"]); settings.disabledActionModeMenuItems =
instance.fantasyFontFamily = map["fantasyFontFamily"]; ActionModeMenuItem.fromValue(map["disabledActionModeMenuItems"]);
instance.fixedFontFamily = map["fixedFontFamily"]; settings.fantasyFontFamily = map["fantasyFontFamily"];
instance.forceDark = ForceDark.fromValue(map["forceDark"]); settings.fixedFontFamily = map["fixedFontFamily"];
instance.geolocationEnabled = map["geolocationEnabled"]; settings.forceDark = ForceDark.fromValue(map["forceDark"]);
instance.layoutAlgorithm = settings.geolocationEnabled = map["geolocationEnabled"];
LayoutAlgorithm.fromValue(map["layoutAlgorithm"]); settings.layoutAlgorithm =
instance.loadWithOverviewMode = map["loadWithOverviewMode"]; LayoutAlgorithm.fromValue(map["layoutAlgorithm"]);
instance.loadsImagesAutomatically = map["loadsImagesAutomatically"]; settings.loadWithOverviewMode = map["loadWithOverviewMode"];
instance.minimumLogicalFontSize = map["minimumLogicalFontSize"]; settings.loadsImagesAutomatically = map["loadsImagesAutomatically"];
instance.initialScale = map["initialScale"]; settings.minimumLogicalFontSize = map["minimumLogicalFontSize"];
instance.needInitialFocus = map["needInitialFocus"]; settings.initialScale = map["initialScale"];
instance.offscreenPreRaster = map["offscreenPreRaster"]; settings.needInitialFocus = map["needInitialFocus"];
instance.sansSerifFontFamily = map["sansSerifFontFamily"]; settings.offscreenPreRaster = map["offscreenPreRaster"];
instance.serifFontFamily = map["serifFontFamily"]; settings.sansSerifFontFamily = map["sansSerifFontFamily"];
instance.standardFontFamily = map["standardFontFamily"]; settings.serifFontFamily = map["serifFontFamily"];
instance.saveFormData = map["saveFormData"]; settings.standardFontFamily = map["standardFontFamily"];
instance.thirdPartyCookiesEnabled = map["thirdPartyCookiesEnabled"]; settings.saveFormData = map["saveFormData"];
instance.hardwareAcceleration = map["hardwareAcceleration"]; settings.thirdPartyCookiesEnabled = map["thirdPartyCookiesEnabled"];
instance.supportMultipleWindows = map["supportMultipleWindows"]; settings.hardwareAcceleration = map["hardwareAcceleration"];
instance.regexToCancelSubFramesLoading = settings.supportMultipleWindows = map["supportMultipleWindows"];
map["regexToCancelSubFramesLoading"]; settings.regexToCancelSubFramesLoading =
instance.useHybridComposition = map["useHybridComposition"]; map["regexToCancelSubFramesLoading"];
instance.useShouldInterceptRequest = map["useShouldInterceptRequest"]; settings.useHybridComposition = map["useHybridComposition"];
instance.useOnRenderProcessGone = map["useOnRenderProcessGone"]; settings.useShouldInterceptRequest = map["useShouldInterceptRequest"];
instance.overScrollMode = OverScrollMode.fromValue(map["overScrollMode"]); settings.useOnRenderProcessGone = map["useOnRenderProcessGone"];
instance.networkAvailable = map["networkAvailable"]; settings.overScrollMode = OverScrollMode.fromValue(map["overScrollMode"]);
instance.scrollBarStyle = ScrollBarStyle.fromValue(map["scrollBarStyle"]); settings.networkAvailable = map["networkAvailable"];
instance.verticalScrollbarPosition = settings.scrollBarStyle = ScrollBarStyle.fromValue(map["scrollBarStyle"]);
VerticalScrollbarPosition.fromValue(map["verticalScrollbarPosition"]); settings.verticalScrollbarPosition =
instance.scrollBarDefaultDelayBeforeFade = VerticalScrollbarPosition.fromValue(map["verticalScrollbarPosition"]);
map["scrollBarDefaultDelayBeforeFade"]; settings.scrollBarDefaultDelayBeforeFade =
instance.scrollbarFadingEnabled = map["scrollbarFadingEnabled"]; map["scrollBarDefaultDelayBeforeFade"];
instance.scrollBarFadeDuration = map["scrollBarFadeDuration"]; settings.scrollbarFadingEnabled = map["scrollbarFadingEnabled"];
instance.rendererPriorityPolicy = RendererPriorityPolicy.fromMap( settings.scrollBarFadeDuration = map["scrollBarFadeDuration"];
map["rendererPriorityPolicy"]?.cast<String, dynamic>()); settings.rendererPriorityPolicy = RendererPriorityPolicy.fromMap(
instance.disableDefaultErrorPage = map["disableDefaultErrorPage"]; map["rendererPriorityPolicy"]?.cast<String, dynamic>());
instance.verticalScrollbarThumbColor = settings.disableDefaultErrorPage = map["disableDefaultErrorPage"];
UtilColor.fromHex(map["verticalScrollbarThumbColor"]); settings.verticalScrollbarThumbColor =
instance.verticalScrollbarTrackColor = UtilColor.fromHex(map["verticalScrollbarThumbColor"]);
UtilColor.fromHex(map["verticalScrollbarTrackColor"]); settings.verticalScrollbarTrackColor =
instance.horizontalScrollbarThumbColor = UtilColor.fromHex(map["verticalScrollbarTrackColor"]);
UtilColor.fromHex(map["horizontalScrollbarThumbColor"]); settings.horizontalScrollbarThumbColor =
instance.horizontalScrollbarTrackColor = UtilColor.fromHex(map["horizontalScrollbarThumbColor"]);
UtilColor.fromHex(map["horizontalScrollbarTrackColor"]); settings.horizontalScrollbarTrackColor =
instance.disallowOverScroll = map["disallowOverScroll"]; UtilColor.fromHex(map["horizontalScrollbarTrackColor"]);
instance.enableViewportScale = map["enableViewportScale"]; }
instance.suppressesIncrementalRendering = if (Platform.isIOS || Platform.isMacOS) {
map["suppressesIncrementalRendering"]; settings.disallowOverScroll = map["disallowOverScroll"];
instance.allowsAirPlayForMediaPlayback = settings.enableViewportScale = map["enableViewportScale"];
map["allowsAirPlayForMediaPlayback"]; settings.suppressesIncrementalRendering =
instance.allowsBackForwardNavigationGestures = map["suppressesIncrementalRendering"];
map["allowsBackForwardNavigationGestures"]; settings.allowsAirPlayForMediaPlayback =
instance.allowsLinkPreview = map["allowsLinkPreview"]; map["allowsAirPlayForMediaPlayback"];
instance.ignoresViewportScaleLimits = map["ignoresViewportScaleLimits"]; settings.allowsBackForwardNavigationGestures =
instance.allowsInlineMediaPlayback = map["allowsInlineMediaPlayback"]; map["allowsBackForwardNavigationGestures"];
instance.allowsPictureInPictureMediaPlayback = settings.allowsLinkPreview = map["allowsLinkPreview"];
map["allowsPictureInPictureMediaPlayback"]; settings.ignoresViewportScaleLimits = map["ignoresViewportScaleLimits"];
instance.isFraudulentWebsiteWarningEnabled = settings.allowsInlineMediaPlayback = map["allowsInlineMediaPlayback"];
map["isFraudulentWebsiteWarningEnabled"]; settings.allowsPictureInPictureMediaPlayback =
instance.selectionGranularity = map["allowsPictureInPictureMediaPlayback"];
SelectionGranularity.fromValue(map["selectionGranularity"])!; settings.isFraudulentWebsiteWarningEnabled =
instance.dataDetectorTypes = dataDetectorTypes; map["isFraudulentWebsiteWarningEnabled"];
instance.sharedCookiesEnabled = map["sharedCookiesEnabled"]; settings.selectionGranularity =
instance.automaticallyAdjustsScrollIndicatorInsets = SelectionGranularity.fromValue(map["selectionGranularity"])!;
map["automaticallyAdjustsScrollIndicatorInsets"]; settings.dataDetectorTypes = dataDetectorTypes;
instance.accessibilityIgnoresInvertColors = settings.sharedCookiesEnabled = map["sharedCookiesEnabled"];
map["accessibilityIgnoresInvertColors"]; settings.automaticallyAdjustsScrollIndicatorInsets =
instance.decelerationRate = map["automaticallyAdjustsScrollIndicatorInsets"];
ScrollViewDecelerationRate.fromValue(map["decelerationRate"])!; settings.accessibilityIgnoresInvertColors =
instance.alwaysBounceVertical = map["alwaysBounceVertical"]; map["accessibilityIgnoresInvertColors"];
instance.alwaysBounceHorizontal = map["alwaysBounceHorizontal"]; settings.decelerationRate =
instance.scrollsToTop = map["scrollsToTop"]; ScrollViewDecelerationRate.fromValue(map["decelerationRate"])!;
instance.isPagingEnabled = map["isPagingEnabled"]; settings.alwaysBounceVertical = map["alwaysBounceVertical"];
instance.maximumZoomScale = map["maximumZoomScale"]; settings.alwaysBounceHorizontal = map["alwaysBounceHorizontal"];
instance.minimumZoomScale = map["minimumZoomScale"]; settings.scrollsToTop = map["scrollsToTop"];
instance.contentInsetAdjustmentBehavior = settings.isPagingEnabled = map["isPagingEnabled"];
ScrollViewContentInsetAdjustmentBehavior.fromValue( settings.maximumZoomScale = map["maximumZoomScale"];
map["contentInsetAdjustmentBehavior"])!; settings.minimumZoomScale = map["minimumZoomScale"];
instance.isDirectionalLockEnabled = map["isDirectionalLockEnabled"]; settings.contentInsetAdjustmentBehavior =
instance.mediaType = map["mediaType"]; ScrollViewContentInsetAdjustmentBehavior.fromValue(
instance.pageZoom = map["pageZoom"]; map["contentInsetAdjustmentBehavior"])!;
instance.limitsNavigationsToAppBoundDomains = settings.isDirectionalLockEnabled = map["isDirectionalLockEnabled"];
map["limitsNavigationsToAppBoundDomains"]; settings.mediaType = map["mediaType"];
instance.useOnNavigationResponse = map["useOnNavigationResponse"]; settings.pageZoom = map["pageZoom"];
instance.applePayAPIEnabled = map["applePayAPIEnabled"]; settings.limitsNavigationsToAppBoundDomains =
instance.allowingReadAccessTo = map["allowingReadAccessTo"] != null map["limitsNavigationsToAppBoundDomains"];
? Uri.parse(map["allowingReadAccessTo"]) settings.useOnNavigationResponse = map["useOnNavigationResponse"];
: null; settings.applePayAPIEnabled = map["applePayAPIEnabled"];
instance.disableLongPressContextMenuOnLinks = settings.allowingReadAccessTo = map["allowingReadAccessTo"] != null
map["disableLongPressContextMenuOnLinks"]; ? Uri.parse(map["allowingReadAccessTo"])
instance.disableInputAccessoryView = map["disableInputAccessoryView"]; : null;
return instance; settings.disableLongPressContextMenuOnLinks =
map["disableLongPressContextMenuOnLinks"];
settings.disableInputAccessoryView = map["disableInputAccessoryView"];
}
return settings;
} }
@override @override