fix: perfil - dropdown ciudad con todas las opciones
- WhiteCard usa Theme.cardColor en lugar de Colors.white fijo - Dropdown ciudad: normaliza valor guardado vs lista (evita mismatch) - Muestra spinner mientras cargan las ciudades - Texto de items adapta color segun el tema (isDark) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
fac4135835
commit
7349d4e3fd
@@ -14,7 +14,7 @@ class WhiteCard extends StatelessWidget {
|
||||
width: width, // width == null ? null : width,
|
||||
margin: const EdgeInsets.all(8),
|
||||
padding: const EdgeInsets.all(10),
|
||||
decoration: buildBoxDecoration(),
|
||||
decoration: buildBoxDecoration(context),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
@@ -37,9 +37,10 @@ class WhiteCard extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
BoxDecoration buildBoxDecoration() {
|
||||
BoxDecoration buildBoxDecoration(BuildContext context) {
|
||||
final cardColor = Theme.of(context).cardColor;
|
||||
return BoxDecoration(
|
||||
color: Colors.white,
|
||||
color: cardColor,
|
||||
borderRadius: BorderRadius.circular(5),
|
||||
boxShadow: [
|
||||
BoxShadow(color: Colors.black.withOpacity(0.05), blurRadius: 5)
|
||||
|
||||
Reference in New Issue
Block a user