TWidgetThemeExtension.defaultTheme constructor

TWidgetThemeExtension.defaultTheme(
  1. ColorScheme colors
)

Implementation

factory TWidgetThemeExtension.defaultTheme(ColorScheme colors) {
  return TWidgetThemeExtension(
    layoutFrame: colors.brightness == Brightness.light ? const Color(0xFF536980) : const Color(0xFF3b3b3f),
    buttonTheme: TButtonTheme.defaultTheme(colors),
    inputFieldTheme: TInputFieldTheme.defaultTheme(colors),
    textFieldTheme: TTextFieldTheme.defaultTheme(colors),
    tagsFieldTheme: TTagsFieldTheme.defaultTheme(colors),
    numberFieldTheme: TNumberFieldTheme.defaultTheme(colors),
    filePickerTheme: TFilePickerTheme.defaultTheme(colors),
    listTheme: TListTheme.defaultTheme(colors),
    tableTheme: TTableTheme.defaultTheme(colors),
    listCardTheme: TListCardTheme.defaultTheme(colors),
    alertTheme: TAlertTheme.defaultTheme(colors),
  );
}