GiphyTheme class

This class defines the theme settings for the Giphy dialog.

It includes settings such as colors, text styles, and other UI parameters to customize the look and feel of the Giphy dialog.

Constructors

GiphyTheme.automatic()
Factory constructor to create an automatic Giphy theme.
factory
GiphyTheme.dark()
Factory constructor to create a dark Giphy theme.
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})
Factory constructor to create a Giphy theme from a given preset.
factory
GiphyTheme.light()
Factory constructor to create a light Giphy theme.
factory

Properties

avatarPlaceholderColor Color?
The placeholder color for avatars.
final
backgroundColor Color?
The background color of the dialog.
final
backgroundColorForLoadingCells Color?
The background color for loading cells in the grid.
final
cellCornerRadius double?
The corner radius of grid cells.
final
confirmationBackButtonColor Color?
The color of the back button in the confirmation view.
final
confirmationSelectButtonColor Color?
The color of the select button in the confirmation view.
final
confirmationSelectButtonTextColor Color?
The text color of the select button in the confirmation view.
final
confirmationViewOnGiphyColor Color?
The color of the 'View on Giphy' button in the confirmation view.
final
defaultTextColor Color?
The default text color in the dialog.
final
dialogOverlayBackgroundColor Color?
The background color of the dialog overlay.
final
emojiDrawerGradientBottomColor Color?
The bottom gradient color for the emoji drawer.
final
emojiDrawerGradientTopColor Color?
The top gradient color for the emoji drawer.
final
emojiDrawerScrollIndicatorStyle GiphyIndicatorStyle?
The style of the scroll indicator in the emoji drawer.
final
emojiDrawerSeparatorColor Color?
The color of the emoji drawer separator.
final
fixedSizeCells bool?
Whether the cells have a fixed size.
final
handleBarColor Color?
The color of the dialog's handlebar.
final
hashCode int
The hash code for this object.
no setterinherited
keyboardAppearance GiphyKeyboardAppearance?
The appearance of the Giphy keyboard.
final
preset GiphyThemePreset?
The preset theme for this configuration.
final
retryButtonBackgroundColor Color?
The background color of the retry button.
final
retryButtonTextColor Color?
The text color of the retry button.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchBackButtonColor Color?
The color of the back button in the search bar.
final
searchBarBackgroundColor Color?
The background color of the search bar.
final
searchBarCornerRadius double?
The corner radius of the search bar.
final
searchBarPadding double?
The padding of the search bar.
final
searchPlaceholderTextColor Color?
The placeholder text color in the search bar.
final
searchTextColor Color?
The text color in the search bar.
final
stickerBackgroundColor Color?
The background color for stickers.
final
suggestionCellBackgroundColor Color?
The background color of suggestion cells.
final
suggestionCellTextColor Color?
The text color of suggestion cells.
final
tabBarBackgroundAlpha double?
The background alpha of the tab bar.
final
tabBarSwitchDefaultColor Color?
The default color of the tab bar switch.
final
tabBarSwitchSelectedColor Color?
The selected color of the tab bar switch.
final
usernameColor Color?
The color of usernames in the confirmation view.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the GiphyTheme instance to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

automaticTheme → const GiphyTheme
Predefined automatic Giphy theme.