GiphyTheme.fromPreset constructor

GiphyTheme.fromPreset({
  1. required GiphyThemePreset preset,
  2. Color? handleBarColor,
  3. Color? emojiDrawerGradientBottomColor,
  4. Color? emojiDrawerGradientTopColor,
  5. GiphyIndicatorStyle? emojiDrawerScrollIndicatorStyle,
  6. Color? emojiDrawerSeparatorColor,
  7. Color? searchBackButtonColor,
  8. Color? searchBarBackgroundColor,
  9. double? searchBarCornerRadius,
  10. double? searchBarPadding,
  11. Color? searchPlaceholderTextColor,
  12. Color? searchTextColor,
  13. Color? suggestionCellBackgroundColor,
  14. Color? suggestionCellTextColor,
  15. double? tabBarBackgroundAlpha,
  16. Color? tabBarSwitchDefaultColor,
  17. Color? tabBarSwitchSelectedColor,
  18. Color? avatarPlaceholderColor,
  19. Color? confirmationBackButtonColor,
  20. Color? confirmationSelectButtonColor,
  21. Color? confirmationSelectButtonTextColor,
  22. Color? confirmationViewOnGiphyColor,
  23. Color? usernameColor,
  24. Color? backgroundColorForLoadingCells,
  25. double? cellCornerRadius,
  26. bool? fixedSizeCells,
  27. Color? stickerBackgroundColor,
  28. GiphyKeyboardAppearance? keyboardAppearance,
  29. Color? backgroundColor,
  30. Color? defaultTextColor,
  31. Color? dialogOverlayBackgroundColor,
  32. Color? retryButtonBackgroundColor,
  33. 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,
  );
}