ChromeSafariBrowserSettings constructor
ChromeSafariBrowserSettings({
- bool? showTitle = true,
- Color? toolbarBackgroundColor,
- Color? secondaryToolbarColor,
- bool? enableUrlBarHiding = false,
- bool? instantAppsEnabled = false,
- String? packageName,
- bool? keepAliveEnabled = false,
- bool? isSingleInstance = false,
- bool? noHistory = false,
- bool? isTrustedWebActivity = false,
- List<
String> ? additionalTrustedOrigins = const [], - TrustedWebActivityDisplayMode? displayMode,
- TrustedWebActivityScreenOrientation? screenOrientation = TrustedWebActivityScreenOrientation.DEFAULT,
- List<
AndroidResource> ? startAnimations, - List<
AndroidResource> ? exitAnimations, - bool? alwaysUseBrowserUI = false,
- bool? entersReaderIfAvailable = false,
- bool? barCollapsingEnabled = false,
- DismissButtonStyle? dismissButtonStyle = DismissButtonStyle.DONE,
- Color? preferredBarTintColor,
- Color? preferredControlTintColor,
- ModalPresentationStyle? presentationStyle = ModalPresentationStyle.FULL_SCREEN,
- ModalTransitionStyle? transitionStyle = ModalTransitionStyle.COVER_VERTICAL,
- ActivityButton? activityButton,
- UIEventAttribution? eventAttribution,
Implementation
ChromeSafariBrowserSettings(
{this.shareState = CustomTabsShareState.SHARE_STATE_DEFAULT,
this.showTitle = true,
this.toolbarBackgroundColor,
this.navigationBarColor,
this.navigationBarDividerColor,
this.secondaryToolbarColor,
this.enableUrlBarHiding = false,
this.instantAppsEnabled = false,
this.packageName,
this.keepAliveEnabled = false,
this.isSingleInstance = false,
this.noHistory = false,
this.isTrustedWebActivity = false,
this.additionalTrustedOrigins = const [],
this.displayMode,
this.screenOrientation = TrustedWebActivityScreenOrientation.DEFAULT,
this.startAnimations,
this.exitAnimations,
this.alwaysUseBrowserUI = false,
this.entersReaderIfAvailable = false,
this.barCollapsingEnabled = false,
this.dismissButtonStyle = DismissButtonStyle.DONE,
this.preferredBarTintColor,
this.preferredControlTintColor,
this.presentationStyle = ModalPresentationStyle.FULL_SCREEN,
this.transitionStyle = ModalTransitionStyle.COVER_VERTICAL,
this.activityButton,
this.eventAttribution}) {
if (startAnimations != null) {
assert(startAnimations!.length == 2,
"start animations must be have 2 android resources");
}
if (exitAnimations != null) {
assert(exitAnimations!.length == 2,
"exit animations must be have 2 android resources");
}
}