customInputTheme function
ShadInputTheme
customInputTheme(
- ShadColorScheme colorScheme
Implementation
ShadInputTheme customInputTheme(ShadColorScheme colorScheme) {
return ShadThemeData().inputTheme.copyWith(
decoration: ShadThemeData().inputTheme.decoration?.copyWith(
focusedBorder: ShadThemeData().inputTheme.decoration?.focusedBorder
?.copyWith(),
secondaryBorder: ShadBorder.none,
secondaryFocusedBorder: ShadBorder.none,
errorBorder: ShadBorder.all(
color: colorScheme.destructive,
width: 1,
radius: const BorderRadius.all(Radius.circular(6)),
),
// errorBorder: ShadBorder.all(color: colorScheme.destructive),
),
placeholderAlignment: Alignment.centerLeft,
placeholderStyle: StyleText.fontBodySmall(color: colorScheme.foreground),
);
}