primaryInputDecorationTheme static method
The primary InputDecorationTheme for the dark theme.
Implementation
static InputDecorationTheme primaryInputDecorationTheme() {
return InputDecorationTheme(
prefixIconColor: DarkThemeColors.colorScheme.primary,
suffixIconColor: DarkThemeColors.colorScheme.primary,
fillColor: Colors.transparent,
helperMaxLines: 3,
hintStyle: AppTypography.dark().bodyLarge?.copyWith(color: DarkThemeColors.colorScheme.onSurfaceVariant),
errorStyle: TextStyle(fontSize: 14.0, letterSpacing: 0.4, color: DarkThemeColors.colorScheme.error, fontWeight: FontWeight.w600),
errorMaxLines: 3,
border: OutlineInputBorder(
borderSide: BorderSide(color: DarkThemeColors.colorScheme.primary, width: 1.5),
borderRadius: BorderRadius.circular(16),
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: DarkThemeColors.colorScheme.primary, width: 2),
borderRadius: BorderRadius.circular(16),
),
disabledBorder: OutlineInputBorder(borderSide: const BorderSide(width: 1), borderRadius: BorderRadius.circular(16)),
);
}