PanelyTheme constructor

PanelyTheme({
  1. Color? primaryAccentColor,
  2. Color? backgroundColor,
  3. Color? borderColor,
  4. PanelyContentPageTheme? page,
  5. PanelySidebarTheme? menu,
  6. PanelyButtonsTheme? button,
  7. PanelyDialogTheme? dialog,
  8. PanelyNotificationTheme? notification,
})

Implementation

PanelyTheme({
  Color? primaryAccentColor,
  Color? backgroundColor,
  Color? borderColor,
  PanelyContentPageTheme? page,
  PanelySidebarTheme? menu,
  PanelyButtonsTheme? button,
  PanelyDialogTheme? dialog,
  PanelyNotificationTheme? notification,
})  : primaryAccentColor = primaryAccentColor ?? const Color(0xFFD32F2F),
      backgroundColor = backgroundColor ?? const Color(0xFF131314),
      borderColor = borderColor ?? const Color(0xFF424242),
      page = page ??
          PanelyContentPageTheme(
            backgroundColor: backgroundColor ?? const Color(0xFF131314),
          ),
      menu = menu ??
          PanelySidebarTheme(
            backgroundColor: backgroundColor ?? const Color(0xFF131314),
          ),
      button = button ??
          PanelyButtonsTheme(
            primaryBackgroundColor: primaryAccentColor ?? const Color(0xFFD32F2F),
            secondaryBackgroundColor: backgroundColor ?? const Color(0xFF131314),
          ),
      dialog = dialog ??
          PanelyDialogTheme(
            backgroundColor: backgroundColor ?? const Color(0xFF131314),
            borderColor: borderColor ?? const Color(0xFF424242),
          ),
      notification = notification ??
          PanelyNotificationTheme(
            backgroundColor: backgroundColor ?? const Color(0xFF131314),
            borderColor: borderColor ?? const Color(0xFF424242),
          );