treezor , sca proff and create child profile

This commit is contained in:
2026-01-27 02:28:52 +03:00
parent ddbfbc1ebf
commit 9d1bb6c22a
107 changed files with 5705 additions and 469 deletions

View File

@@ -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),
],
),