InAppBrowserSettings constructor
- bool? allowGoBackWithBackButton = true,
- String? closeButtonCaption,
- Color? closeButtonColor,
- bool? closeOnCannotGoBack = true,
- bool? hideCloseButton = false,
- bool? hideDefaultMenuItems = false,
- bool? hideProgressBar = false,
- bool? hideTitleBar = false,
- bool? hideToolbarBottom = false,
- bool? hideToolbarTop = false,
- bool? hideUrlBar = false,
- ModalPresentationStyle? presentationStyle,
- bool? shouldCloseOnBackButtonPressed = false,
- Color? toolbarBottomBackgroundColor,
- Color? toolbarBottomTintColor,
- bool? toolbarBottomTranslucent = true,
- Color? toolbarTopBackgroundColor,
- String? toolbarTopFixedTitle,
- Color? toolbarTopTintColor,
- bool? toolbarTopTranslucent = true,
- ModalTransitionStyle? transitionStyle,
- double? windowAlphaValue = 1.0,
- InAppWebViewRect? windowFrame,
- WindowStyleMask? windowStyleMask,
- WindowTitlebarSeparatorStyle? windowTitlebarSeparatorStyle,
- WindowType? windowType,
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
- Linux WPE WebKit (Official API - GtkWindow)
Implementation
InAppBrowserSettings({
this.allowGoBackWithBackButton = true,
this.closeButtonCaption,
this.closeButtonColor,
this.closeOnCannotGoBack = true,
this.hidden = false,
this.hideCloseButton = false,
this.hideDefaultMenuItems = false,
this.hideProgressBar = false,
this.hideTitleBar = false,
this.hideToolbarBottom = false,
this.hideToolbarTop = false,
this.hideUrlBar = false,
this.menuButtonColor,
ModalPresentationStyle? presentationStyle,
this.shouldCloseOnBackButtonPressed = false,
this.toolbarBottomBackgroundColor,
this.toolbarBottomTintColor,
this.toolbarBottomTranslucent = true,
this.toolbarTopBackgroundColor,
this.toolbarTopFixedTitle,
this.toolbarTopTintColor,
this.toolbarTopTranslucent = true,
ModalTransitionStyle? transitionStyle,
this.windowAlphaValue = 1.0,
this.windowFrame,
this.windowStyleMask,
this.windowTitlebarSeparatorStyle,
this.windowType,
}) : presentationStyle =
presentationStyle ?? ModalPresentationStyle.FULL_SCREEN,
transitionStyle = transitionStyle ?? ModalTransitionStyle.COVER_VERTICAL;