This commit is contained in:
Patrick Alvin Alcala 2025-02-26 12:52:08 +08:00
parent cbf2ff062f
commit 7886eeb6c2
26 changed files with 210 additions and 228 deletions

View file

@ -24,15 +24,15 @@ class DropDownWidget extends StatelessWidget {
children: [
Text(
'$label:',
style: GoogleFonts.outfit(
textStyle: const TextStyle(color: Colors.white, fontSize: 12),
style: GoogleFonts.inter(
textStyle: const TextStyle(color: Colors.white, fontSize: 12, fontWeight: FontWeight.w500),
),
),
const Gap(8),
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8), // Set the desired border radius
border: Border.all(color: const Color.fromRGBO(255, 255, 255, 1)), // Set the border color
borderRadius: BorderRadius.circular(4), // Set the desired border radius
border: Border.all(color: const Color.fromRGBO(255, 255, 255, 1)),
),
child: DropdownMenu(
initialSelection: '',
@ -42,20 +42,22 @@ class DropDownWidget extends StatelessWidget {
label: item[listTitle].toString(),
value: item[listTitle],
style: ButtonStyle(
foregroundColor: WidgetStateProperty.all<Color>(const Color.fromRGBO(230, 230, 230, 1)),
foregroundColor: WidgetStateProperty.all<Color>(const Color.fromRGBO(10, 10, 10, 1)),
textStyle: WidgetStateProperty.all<TextStyle>(
GoogleFonts.inter(fontSize: 16, fontWeight: FontWeight.w500)))),
],
onSelected: onChanged,
width: MediaQuery.of(context).size.width * 0.9,
menuHeight: MediaQuery.of(context).size.height * 0.8,
textStyle:
GoogleFonts.outfit(textStyle: const TextStyle(color: Color.fromRGBO(255, 255, 255, 1), fontSize: 16)),
textStyle: GoogleFonts.inter(
textStyle: const TextStyle(color: Color.fromRGBO(255, 255, 255, 1), fontSize: 16),
fontWeight: FontWeight.w500),
menuStyle: MenuStyle(
backgroundColor: WidgetStateProperty.all<Color>(const Color.fromRGBO(21, 13, 35, 0.902)),
// backgroundColor: WidgetStateProperty.all<Color>(const Color.fromRGBO(21, 13, 35, 0.902)),
backgroundColor: WidgetStateProperty.all<Color>(const Color.fromRGBO(255, 255, 255, 1)),
padding: WidgetStateProperty.all(const EdgeInsets.symmetric(vertical: 16, horizontal: 8)),
shape: WidgetStateProperty.all(RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8), // Set the border radius for the dropdown menu
borderRadius: BorderRadius.circular(4), // Set the border radius for the dropdown menu
)),
),
),