CustomTabsOptions class

A comprehensive set of options for customizing the appearance and behavior of Custom Tabs when launching a URL.

The CustomTabsOptions class allows you to tailor the Custom Tabs experience to match your application's theme and requirements. You can customize colors, animations, toolbar behavior, and more.

See Also

Annotations

Constructors

CustomTabsOptions.new({CustomTabsColorSchemes? colorSchemes, bool? urlBarHidingEnabled, CustomTabsShareState? shareState, bool? showTitle, bool? instantAppsEnabled, bool? downloadButtonEnabled, bool? bookmarksButtonEnabled, bool? shareIdentityEnabled, CustomTabsCloseButton? closeButton, CustomTabsAnimations? animations, CustomTabsBrowserConfiguration? browser, PartialCustomTabsConfiguration? partial})
Creates a CustomTabsOptions instance with the specified options.
const
CustomTabsOptions.externalBrowser({required Map<String, String> headers})
Creates a CustomTabsOptions instance with HTTP headers for an external browser.
CustomTabsOptions.partial({required PartialCustomTabsConfiguration configuration, CustomTabsColorSchemes? colorSchemes, CustomTabsShareState? shareState, bool? showTitle, bool? downloadButtonEnabled, bool? bookmarksButtonEnabled, CustomTabsCloseButton? closeButton, CustomTabsBrowserConfiguration? browser})
Creates a CustomTabsOptions instance with configuration for Partial Custom Tabs.
const

Properties

animations CustomTabsAnimations?
The enter and exit animations.
final
bookmarksButtonEnabled bool?
A Boolean value that determines whether to show the bookmarks button in the overflow menu. The button is enabled by default.
final
browser CustomTabsBrowserConfiguration?
The configuration for the Custom Tab as browser.
final
closeButton CustomTabsCloseButton?
The close button configuration.
final
colorSchemes CustomTabsColorSchemes?
The visualization configuration.
final
downloadButtonEnabled bool?
A Boolean value that determines whether to show the download button in the overflow menu. The button is enabled by default.
final
hashCode int
The hash code for this object.
no setterinherited
instantAppsEnabled bool?
A Boolean value that determines whether to enable Instant Apps for this Custom Tab.
final
partial PartialCustomTabsConfiguration?
The configuration for Partial Custom Tabs.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shareIdentityEnabled bool?
A Boolean value that enables App-specific history for Custom Tabs.
final
shareState CustomTabsShareState?
The share state that should be applied to the Custom Tab.
final
showTitle bool?
A Boolean value that determines whether to show the page title in the toolbar of the Custom Tab.
final
urlBarHidingEnabled bool?
A Boolean value that enables the url bar to hide as the user scrolls down the page.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited