bg_custom_textfield 0.0.3
bg_custom_textfield: ^0.0.3 copied to clipboard
This package allows you to customize your text field.
0.0.3 #
[0.0.3] - 2025-05-10 #
Added #
BGCustomTextFieldWidget Enhancement: TheBGCustomTextFieldwidget has been significantly enhanced with a wide range of customizable properties, providing greater flexibility and control over its appearance and behavior. Key additions include:- Support for
labelText,errorText,prefixIcon, andsuffixIconfor richer visual presentation. - Properties for
obscureText,keyboardType,maxLines,minLines,enabled,readOnly, andtextAlignto control functionality. style,border,fillColor, andfilledproperties for styling.focusNode,onTap, andtextCapitalizationfor advanced control.- Use of
TextFormFieldfor built-in form validation support. - Default
UnderlineInputBorderfor a consistent look.
- Support for
Changed #
BGCustomTextFieldnow usesTextFormField: This change allows for form validation and better integration with form handling.
Example Usage (Optional - if relevant, keep it concise) #
BGCustomTextField(
hintText: "Enter your name",
labelText: "Name",
prefixIcon: Icons.person,
controller: TextEditingController(),
validator: (value) => value!.isEmpty ? "Field can't be empty" : null,
);