KitTextfield constructor
const
KitTextfield({
- double heigth = 50,
- double width = 300,
- BoxDecoration? decoration,
- EdgeInsets? padding = const EdgeInsets.symmetric(vertical: 10, horizontal: 15),
- EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 70),
- Color? colorGradient,
- Color? colorGradient2,
- bool? containTiltle = false,
- String title = 'QT Components UI',
- TextStyle? titleStyle,
- ValueChanged<
String> ? onChanged, - String textInTextField = 'QT Components UI',
- TextStyle textStyleInTextField = const TextStyle(color: Colors.black, fontSize: 15, fontWeight: FontWeight.w700),
- InputBorder border = InputBorder.none,
- bool obscureText = false,
- TextEditingController? controller,
- TextInputType? keyboardType,
- Icon? prefix = const Icon(Icons.search_rounded, color: Colors.black),
- IconButton? sufix,
- int? maxlines,
- int? minlines,
- Color? colorTextField,
- bool containGradient = false,
- Alignment? alignmentGradientBegin,
- Alignment? alignmentGradientEnd,
- MainAxisAlignment? mainAxisAlignmentTitle,
- bool enable = true,
- bool enableSuggestions = false,
- bool decorationWithOutline = false,
- bool alignLabelWithHint = true,
- Color colorBorderSide = Colors.orange,
- FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.always,
- double widthBorderSide = 1.0,
- List<
TextInputFormatter> ? inputFormatters, - bool textFieldWithGradient = false,
- Color? colorMaterial,
- TextStyle? style,
Implementation
const KitTextfield(
{this.heigth = 50,
this.width = 300,
this.decoration,
this.padding = const EdgeInsets.symmetric(vertical: 10, horizontal: 15),
this.margin = const EdgeInsets.symmetric(horizontal: 70),
this.colorGradient,
this.colorGradient2,
this.containTiltle = false,
this.title = 'QT Components UI',
this.titleStyle,
this.onChanged,
this.textInTextField = 'QT Components UI',
this.textStyleInTextField = const TextStyle(
color: Colors.black, fontSize: 15, fontWeight: FontWeight.w700),
this.border = InputBorder.none,
this.obscureText = false,
this.controller,
this.keyboardType,
this.prefix = const Icon(
Icons.search_rounded,
color: Colors.black,
),
this.sufix,
this.maxlines,
this.minlines,
this.colorTextField,
this.containGradient = false,
this.alignmentGradientBegin,
this.alignmentGradientEnd,
this.mainAxisAlignmentTitle,
this.enable = true,
this.enableSuggestions = false,
this.decorationWithOutline = false,
this.alignLabelWithHint = true,
this.colorBorderSide = Colors.orange,
this.floatingLabelBehavior = FloatingLabelBehavior.always,
this.widthBorderSide = 1.0,
this.inputFormatters,
this.textFieldWithGradient = false,
this.colorMaterial,
this.style});