CkInputConfig class

Global design configuration shared by CkTextField and CkMultilineTextField.

All parameters are optional. When a parameter is null the individual widget falls back to its own default or the active ThemeData.

Constructors

CkInputConfig({TextStyle? hintStyle, TextStyle? textStyle, double? fontSize, TextAlign? textAlign, Color? borderColor, double? borderRadius, double borderWidth = 1.2, Color? backgroundColor, bool? enableCapitalization})
const

Properties

backgroundColor Color?
Fill/background colour of the text field.
final
borderColor Color?
Border/outline colour when the field is not focused or in error.
final
borderRadius double?
Corner radius of the input border.
final
borderWidth double
Width of the input border stroke. Defaults to 1.2. Used as the global default; widgets can override per-instance via their own borderWidth.
final
enableCapitalization bool?
Whether to auto-capitalise the first letter of sentences. Set to false to disable sentence capitalisation globally.
final
fontSize double?
Font size for user input. Overridden per widget if the widget specifies its own fontSize.
final
hashCode int
The hash code for this object.
no setterinherited
hintStyle TextStyle?
Style applied to hint text across all text fields.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textAlign TextAlign?
Horizontal alignment of the input text.
final
textStyle TextStyle?
Base text style for user input across all text fields.
final

Methods

copyWith({TextStyle? hintStyle, TextStyle? textStyle, double? fontSize, TextAlign? textAlign, Color? borderColor, double? borderRadius, double? borderWidth, Color? backgroundColor, bool? enableCapitalization}) CkInputConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited