This commit is contained in:
Patrick Alvin Alcala 2025-02-10 09:51:04 +08:00
parent 4586256032
commit 5840df0879
16 changed files with 45 additions and 61 deletions

View file

@ -22,13 +22,13 @@ class MenuWidget extends StatelessWidget {
onTap: onPressed,
child: Container(
width: MediaQuery.of(context).size.width - 96,
padding: EdgeInsets.only(top: 16, bottom: 16),
padding: const EdgeInsets.only(top: 16, bottom: 16),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
border: Border.all(
color: color != null ? _getColorBasedOnString(color ?? '') : const Color.fromRGBO(255, 255, 255, 0.6),
width: 2),
color: color != null ? _getColorBasedOnString(color ?? '') : Colors.transparent,
color: color != null ? _getColorBasedOnString(color ?? '') : const Color.fromRGBO(0, 0, 0, 0),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
@ -61,7 +61,7 @@ class MenuWidget extends StatelessWidget {
case 'teal':
return teal;
default:
return Colors.transparent; // Default to transparent if color is not recognized
return const Color.fromRGBO(0, 0, 0, 0); // Default to transparent if color is not recognized
}
}
}