AiutaTheme class
This class is used to configure the theme of the Aiuta SDK UI components.
- Annotations
-
- @JsonSerializable()
Constructors
-
AiutaTheme.new({required AiutaColorTheme color, required List<
AiutaFont> fonts, required AiutaLabelTheme label, required AiutaImageTheme image, required AiutaButtonTheme button, required AiutaPageBarTheme pageBar, required AiutaBottomSheetTheme bottomSheet, required AiutaActivityIndicatorTheme activityIndicator, required AiutaSelectionSnackbarTheme selectionSnackbar, required AiutaErrorSnackbarTheme errorSnackbar, required AiutaProductBarTheme productBar, required AiutaPowerBarTheme powerBar}) -
Creates an AiutaTheme with
color
theme,fonts
available for the SDK to use in the UI,label
for showing the text view,image
views,button
,pageBar
,bottomSheet
styles,selectionSnackbar
to configure the lists selections,errorSnackbar
to display errors,productBar
for everything related to the product info, andpowerBar
to configure the "Powered By Aiuta" label. - AiutaTheme.builtIn()
-
Creates a built-in theme configuration with default settings.
factory
-
AiutaTheme.fromJson(Map<
String, dynamic> json) -
factory
Properties
- activityIndicator → AiutaActivityIndicatorTheme
-
Configuration for the activity indicator.
final
- bottomSheet → AiutaBottomSheetTheme
-
Configuration for the bottom sheets for both the SDK ti be displayed itself
and other bottom sheets inside the SDK like the one for the product
details, image picker, etc.
final
-
Configuration for the buttons.
final
- color → AiutaColorTheme
-
The color theme configuration.
final
- errorSnackbar → AiutaErrorSnackbarTheme
-
Configuration for the error snackbar that displays error messages.
final
-
fonts
→ List<
AiutaFont> -
The list of fonts available in the theme.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → AiutaImageTheme
-
Configuration for the image view.
final
- label → AiutaLabelTheme
-
Configuration for the labels/text views.
final
- pageBar → AiutaPageBarTheme
-
Configuration for the page bar (like Android
appBar
and iOSnavBar
). Contains the title and back/close/action buttons.final - powerBar → AiutaPowerBarTheme
-
Configuration for the "Powered By Aiuta" label that can be used in some
places like the bottom of the screen while waiting for the generation,
in accordance with your agreement with Aiuta.
final
- productBar → AiutaProductBarTheme
-
Configuration for the product bars that is showing the product info:
images, title, brand name and optionally prices.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionSnackbar → AiutaSelectionSnackbarTheme
-
Configuration for the selection snackbar that is embeds inside the
pages with the lists of some items (like the generations history),
allows to select multiple items and perform actions on them.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited