InAppBrowserSettings class
This class represents all InAppBrowser settings available.
- Implemented types
Constructors
- InAppBrowserSettings({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 = ModalPresentationStyle.FULL_SCREEN, bool? shouldCloseOnBackButtonPressed = false, Color? toolbarBottomBackgroundColor, Color? toolbarBottomTintColor, bool? toolbarBottomTranslucent = true, Color? toolbarTopBackgroundColor, String? toolbarTopFixedTitle, Color? toolbarTopTintColor, bool? toolbarTopTranslucent = true, ModalTransitionStyle? transitionStyle = ModalTransitionStyle.COVER_VERTICAL, double? windowAlphaValue = 1.0, InAppWebViewRect? windowFrame, WindowStyleMask? windowStyleMask, WindowTitlebarSeparatorStyle? windowTitlebarSeparatorStyle, WindowType? windowType})
Properties
- allowGoBackWithBackButton ↔ bool?
-
Set to
false
to block the InAppBrowser WebView going back when the user click on the Android back button. The default value istrue
.getter/setter pair - closeButtonCaption ↔ String?
-
Set the custom text for the close button.
getter/setter pair
- closeButtonColor ↔ Color?
-
Set the custom color for the close button.
getter/setter pair
- closeOnCannotGoBack ↔ bool?
-
Set to
false
to not close the InAppBrowser when the user click on the Android back button and the WebView cannot go back to the history. The default value istrue
.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
-
Set to
true
to create the browser and load the page, but not show it. Omit or set tofalse
to have the browser open and load normally. The default value isfalse
.getter/setter pair - hideCloseButton ↔ bool?
-
Set to
true
to hide the close button. The default value isfalse
.getter/setter pair - hideDefaultMenuItems ↔ bool?
-
Set to
true
to hide the default menu items. The default value isfalse
.getter/setter pair - hideProgressBar ↔ bool?
-
Set to
true
to hide the progress bar when the WebView is loading a page. The default value isfalse
.getter/setter pair - hideTitleBar ↔ bool?
-
Set to
true
if you want the title should be displayed. The default value isfalse
.getter/setter pair - hideToolbarBottom ↔ bool?
-
Set to
true
to hide the toolbar at the bottom of the WebView. The default value isfalse
.getter/setter pair - hideToolbarTop ↔ bool?
-
Set to
true
to hide the toolbar at the top of the WebView. The default value isfalse
.getter/setter pair - hideUrlBar ↔ bool?
-
Set to
true
to hide the url bar on the toolbar at the top. The default value isfalse
.getter/setter pair -
Set the custom color for the menu button.
getter/setter pair
- presentationStyle ↔ ModalPresentationStyle?
-
Set the custom modal presentation style when presenting the WebView. The default value is ModalPresentationStyle.FULL_SCREEN.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldCloseOnBackButtonPressed ↔ bool?
-
Set to
true
to close the InAppBrowser when the user click on the Android back button. The default value isfalse
.getter/setter pair - toolbarBottomBackgroundColor ↔ Color?
-
Set the custom background color of the toolbar at the bottom.
getter/setter pair
- toolbarBottomTintColor ↔ Color?
-
Set the tint color to apply to the bar button items.
getter/setter pair
- toolbarBottomTranslucent ↔ bool?
-
Set to
true
to set the toolbar at the bottom translucent. The default value istrue
.getter/setter pair - toolbarTopBackgroundColor ↔ Color?
-
Set the custom background color of the toolbar at the top.
getter/setter pair
- toolbarTopBarTintColor ↔ Color?
-
Set the tint color to apply to the navigation bar background.
getter/setter pair
- toolbarTopFixedTitle ↔ String?
-
Set the action bar's title.
getter/setter pair
- toolbarTopTintColor ↔ Color?
-
Set the tint color to apply to the navigation items and bar button items.
getter/setter pair
- toolbarTopTranslucent ↔ bool?
-
Set to
true
to set the toolbar at the top translucent. The default value istrue
.getter/setter pair - transitionStyle ↔ ModalTransitionStyle?
-
Set to the custom transition style when presenting the WebView. The default value is ModalTransitionStyle.COVER_VERTICAL.
getter/setter pair
- windowAlphaValue ↔ double?
-
The window’s alpha value.
The default value is
1.0
.getter/setter pair - windowFrame ↔ InAppWebViewRect?
-
Sets the origin and size of the window’s frame rectangle according to a given frame rectangle,
thereby setting its position and size onscreen.
getter/setter pair
- windowStyleMask ↔ WindowStyleMask?
-
Flags that describe the window’s current style, such as if it’s resizable or in full-screen mode.
getter/setter pair
- windowTitlebarSeparatorStyle ↔ WindowTitlebarSeparatorStyle?
-
The type of separator that the app displays between the title bar and content of a window.
getter/setter pair
- windowType ↔ WindowType?
-
How the browser window should be added to the main window.
The default value is WindowType.WINDOW.
getter/setter pair
Methods
-
copy(
) → InAppBrowserSettings -
Returns a copy of InAppBrowserSettings.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts instance to a map.
override
-
toMap(
) → Map< String, dynamic> -
Converts instance to a map.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? map) → InAppBrowserSettings? -
Gets a possible InAppBrowserSettings instance from a Map value.
override