treezor , sca proff and create child profile
This commit is contained in:
@@ -6,7 +6,7 @@ class CountryPrefixPicker extends StatelessWidget {
|
||||
super.key,
|
||||
required this.onChanged,
|
||||
required this.headerText,
|
||||
this.initialCountryCode = '+34',
|
||||
this.initialSelection = '+34',
|
||||
this.radius = 12,
|
||||
this.width = 90,
|
||||
this.height = 55,
|
||||
@@ -15,7 +15,7 @@ class CountryPrefixPicker extends StatelessWidget {
|
||||
});
|
||||
|
||||
final ValueChanged<CountryCode> onChanged;
|
||||
final String initialCountryCode;
|
||||
final String initialSelection;
|
||||
final String headerText;
|
||||
final double radius;
|
||||
final double width;
|
||||
@@ -33,18 +33,19 @@ class CountryPrefixPicker extends StatelessWidget {
|
||||
showOnlyCountryWhenClosed: true,
|
||||
showDropDownButton: true,
|
||||
headerText: headerText,
|
||||
onChanged: onChanged,
|
||||
initialSelection: initialCountryCode,
|
||||
initialSelection: initialSelection,
|
||||
showFlag: true,
|
||||
padding: EdgeInsets.zero,
|
||||
// onInit: (country) {
|
||||
// if (country != null) onChanged(country);
|
||||
// },
|
||||
onChanged: onChanged,
|
||||
|
||||
builder: (CountryCode? country) {
|
||||
if (country == null) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
if (country == null) return const SizedBox.shrink();
|
||||
|
||||
return InputDecorator(
|
||||
decoration: InputDecoration(
|
||||
isDense: false,
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 12,
|
||||
vertical: 16,
|
||||
@@ -71,6 +72,15 @@ class CountryPrefixPicker extends StatelessWidget {
|
||||
height: 24,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
|
||||
// ✅ si quieres mostrar el dialCode también:
|
||||
// Expanded(
|
||||
// child: Text(
|
||||
// country.dialCode ?? '',
|
||||
// style: const TextStyle(fontWeight: FontWeight.w600),
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// ),
|
||||
const Icon(Icons.arrow_drop_down, size: 24),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user