AiutaTheme constructor

AiutaTheme({
  1. required AiutaColorTheme color,
  2. required List<AiutaFont> fonts,
  3. required AiutaLabelTheme label,
  4. required AiutaImageTheme image,
  5. required AiutaButtonTheme button,
  6. required AiutaPageBarTheme pageBar,
  7. required AiutaBottomSheetTheme bottomSheet,
  8. required AiutaActivityIndicatorTheme activityIndicator,
  9. required AiutaSelectionSnackbarTheme selectionSnackbar,
  10. required AiutaErrorSnackbarTheme errorSnackbar,
  11. required AiutaProductBarTheme productBar,
  12. 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,
});