AiutaTheme constructor
- 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,
and powerBar
to configure the "Powered By Aiuta" label.
Note: In accordance with your agreement with Aiuta powerBar
may be hidden
by the subscription details info retrieved from the Aiuta backend, but in
order to not bring cross complexity to the SDK, we ask you to configure
its styles here regardless of whether it will be displayed or not.
Note: In case of failure to load the subscription details info from the
Aiuta backend, the SDK will NOT display the "Powered By Aiuta" powerBar
by default until the subscription details info is loaded successfully and
the agreement with Aiuta explicitly allows to display it.
Implementation
AiutaTheme({
required this.color,
required this.fonts,
required this.label,
required this.image,
required this.button,
required this.pageBar,
required this.bottomSheet,
required this.activityIndicator,
required this.selectionSnackbar,
required this.errorSnackbar,
required this.productBar,
required this.powerBar,
});