GiphyTheme.fromPreset constructor
GiphyTheme.fromPreset({
- required GiphyThemePreset preset,
- Color? handleBarColor,
- Color? emojiDrawerGradientBottomColor,
- Color? emojiDrawerGradientTopColor,
- GiphyIndicatorStyle? emojiDrawerScrollIndicatorStyle,
- Color? emojiDrawerSeparatorColor,
- Color? searchBackButtonColor,
- Color? searchBarBackgroundColor,
- double? searchBarCornerRadius,
- double? searchBarPadding,
- Color? searchPlaceholderTextColor,
- Color? searchTextColor,
- Color? suggestionCellBackgroundColor,
- Color? suggestionCellTextColor,
- double? tabBarBackgroundAlpha,
- Color? tabBarSwitchDefaultColor,
- Color? tabBarSwitchSelectedColor,
- Color? avatarPlaceholderColor,
- Color? confirmationBackButtonColor,
- Color? confirmationSelectButtonColor,
- Color? confirmationSelectButtonTextColor,
- Color? confirmationViewOnGiphyColor,
- Color? usernameColor,
- Color? backgroundColorForLoadingCells,
- double? cellCornerRadius,
- bool? fixedSizeCells,
- Color? stickerBackgroundColor,
- GiphyKeyboardAppearance? keyboardAppearance,
- Color? backgroundColor,
- Color? defaultTextColor,
- Color? dialogOverlayBackgroundColor,
- Color? retryButtonBackgroundColor,
- Color? retryButtonTextColor,
Factory constructor to create a Giphy theme from a given preset.
Implementation
factory GiphyTheme.fromPreset({
required GiphyThemePreset preset,
Color? handleBarColor,
Color? emojiDrawerGradientBottomColor,
Color? emojiDrawerGradientTopColor,
GiphyIndicatorStyle? emojiDrawerScrollIndicatorStyle,
Color? emojiDrawerSeparatorColor,
Color? searchBackButtonColor,
Color? searchBarBackgroundColor,
double? searchBarCornerRadius,
double? searchBarPadding,
Color? searchPlaceholderTextColor,
Color? searchTextColor,
Color? suggestionCellBackgroundColor,
Color? suggestionCellTextColor,
double? tabBarBackgroundAlpha,
Color? tabBarSwitchDefaultColor,
Color? tabBarSwitchSelectedColor,
Color? avatarPlaceholderColor,
Color? confirmationBackButtonColor,
Color? confirmationSelectButtonColor,
Color? confirmationSelectButtonTextColor,
Color? confirmationViewOnGiphyColor,
Color? usernameColor,
Color? backgroundColorForLoadingCells,
double? cellCornerRadius,
bool? fixedSizeCells,
Color? stickerBackgroundColor,
GiphyKeyboardAppearance? keyboardAppearance,
Color? backgroundColor,
Color? defaultTextColor,
Color? dialogOverlayBackgroundColor,
Color? retryButtonBackgroundColor,
Color? retryButtonTextColor,
}) {
return GiphyTheme._private(
preset: preset,
handleBarColor: handleBarColor,
emojiDrawerGradientBottomColor: emojiDrawerGradientBottomColor,
emojiDrawerGradientTopColor: emojiDrawerGradientTopColor,
emojiDrawerScrollIndicatorStyle: emojiDrawerScrollIndicatorStyle,
emojiDrawerSeparatorColor: emojiDrawerSeparatorColor,
searchBackButtonColor: searchBackButtonColor,
searchBarBackgroundColor: searchBarBackgroundColor,
searchBarCornerRadius: searchBarCornerRadius,
searchBarPadding: searchBarPadding,
searchPlaceholderTextColor: searchPlaceholderTextColor,
searchTextColor: searchTextColor,
suggestionCellBackgroundColor: suggestionCellBackgroundColor,
suggestionCellTextColor: suggestionCellTextColor,
tabBarBackgroundAlpha: tabBarBackgroundAlpha,
tabBarSwitchDefaultColor: tabBarSwitchDefaultColor,
tabBarSwitchSelectedColor: tabBarSwitchSelectedColor,
avatarPlaceholderColor: avatarPlaceholderColor,
confirmationBackButtonColor: confirmationBackButtonColor,
confirmationSelectButtonColor: confirmationSelectButtonColor,
confirmationSelectButtonTextColor: confirmationSelectButtonTextColor,
confirmationViewOnGiphyColor: confirmationViewOnGiphyColor,
usernameColor: usernameColor,
backgroundColorForLoadingCells: backgroundColorForLoadingCells,
cellCornerRadius: cellCornerRadius,
fixedSizeCells: fixedSizeCells,
stickerBackgroundColor: stickerBackgroundColor,
keyboardAppearance: keyboardAppearance,
backgroundColor: backgroundColor,
defaultTextColor: defaultTextColor,
dialogOverlayBackgroundColor: dialogOverlayBackgroundColor,
retryButtonBackgroundColor: retryButtonBackgroundColor,
retryButtonTextColor: retryButtonTextColor,
);
}