sign up feature second version done
This commit is contained in:
@@ -29,12 +29,13 @@ class CountryPrefixPicker extends StatelessWidget {
|
||||
width: width,
|
||||
height: height,
|
||||
child: CountryCodePicker(
|
||||
showCountryOnly: true,
|
||||
showOnlyCountryWhenClosed: true,
|
||||
showDropDownButton: true,
|
||||
headerText: headerText,
|
||||
onChanged: onChanged,
|
||||
initialSelection: initialCountryCode,
|
||||
showFlag: false,
|
||||
showDropDownButton: false,
|
||||
hideMainText: true,
|
||||
showFlag: true,
|
||||
padding: EdgeInsets.zero,
|
||||
builder: (CountryCode? country) {
|
||||
if (country == null) {
|
||||
|
||||
@@ -9,6 +9,7 @@ class CustomTextField extends StatefulWidget {
|
||||
final String label;
|
||||
final int? lines;
|
||||
final ValueChanged<String>? onChanged;
|
||||
final bool readOnly;
|
||||
final int? length;
|
||||
final TextEditingController? controller;
|
||||
|
||||
@@ -23,6 +24,7 @@ class CustomTextField extends StatefulWidget {
|
||||
this.lines,
|
||||
this.length,
|
||||
this.onChanged,
|
||||
this.readOnly = false,
|
||||
this.controller,
|
||||
});
|
||||
|
||||
@@ -52,6 +54,7 @@ class CustomTextFieldState extends State<CustomTextField> {
|
||||
),
|
||||
),
|
||||
TextFormField(
|
||||
readOnly: widget.readOnly,
|
||||
onFieldSubmitted: widget.onSubmitted,
|
||||
textInputAction: widget.textInputAction,
|
||||
controller: widget.controller,
|
||||
|
||||
Reference in New Issue
Block a user