update edit and list and detail view

This commit is contained in:
2026-01-16 14:57:14 +01:00
parent 6df0da2776
commit 3a2dcfd7fc
7 changed files with 136 additions and 85 deletions

View File

@@ -25,6 +25,7 @@ class ColorSelector extends StatelessWidget {
'pink': Colors.pink,
'grey': Colors.grey,
'brown': Colors.brown,
'wood' : Colors.brown[300]!,
};
return colorMap[colorName.toLowerCase()] ?? Colors.grey;
}

View File

@@ -30,39 +30,46 @@ class DetailInfoCard extends StatelessWidget {
],
),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
padding: EdgeInsets.all(10),
padding: EdgeInsets.all(8),
decoration: BoxDecoration(
color: color.withAlpha(10),
borderRadius: BorderRadius.circular(12),
),
child: Icon(icon, color: color, size: 24),
child: Icon(icon, color: color, size: 20),
),
SizedBox(width: 12),
SizedBox(width: 10),
Expanded(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
label,
style: TextStyle(
fontSize: 12,
fontSize: 11,
color: Colors.grey.shade600,
fontWeight: FontWeight.w500,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
SizedBox(height: 4),
Text(
value,
style: TextStyle(
fontSize: 18,
fontSize: 16,
fontWeight: FontWeight.bold,
color: Colors.grey.shade800,
),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
],
),