update
This commit is contained in:
parent
9598e17abb
commit
064814e165
3 changed files with 87 additions and 55 deletions
|
|
@ -31,7 +31,7 @@ class DropDownWidget extends StatelessWidget {
|
|||
const Gap(8),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(10), // Set the desired border radius
|
||||
borderRadius: BorderRadius.circular(12), // Set the desired border radius
|
||||
border: Border.all(color: Colors.white), // Set the border color
|
||||
),
|
||||
child: DropdownMenu(
|
||||
|
|
@ -39,19 +39,22 @@ class DropDownWidget extends StatelessWidget {
|
|||
dropdownMenuEntries: [
|
||||
for (var item in list)
|
||||
DropdownMenuEntry(
|
||||
label: item[listTitle].toString(),
|
||||
value: item[listTitle],
|
||||
)
|
||||
label: item[listTitle].toString(),
|
||||
value: item[listTitle],
|
||||
style: ButtonStyle(
|
||||
foregroundColor: WidgetStateProperty.all<Color>(Colors.white),
|
||||
textStyle: WidgetStateProperty.all<TextStyle>(
|
||||
GoogleFonts.outfit(fontSize: 16, fontWeight: FontWeight.w500)))),
|
||||
],
|
||||
onSelected: onChanged,
|
||||
width: MediaQuery.of(context).size.width * 0.8,
|
||||
menuHeight: MediaQuery.of(context).size.width * 0.9,
|
||||
menuHeight: MediaQuery.of(context).size.height * 0.8,
|
||||
textStyle: GoogleFonts.outfit(textStyle: TextStyle(color: Colors.white)),
|
||||
menuStyle: MenuStyle(
|
||||
backgroundColor: WidgetStateProperty.all<Color>(const Color.fromRGBO(13, 84, 106, 0.7)),
|
||||
padding: WidgetStateProperty.all(const EdgeInsets.symmetric(vertical: 8.0)),
|
||||
backgroundColor: WidgetStateProperty.all<Color>(const Color.fromRGBO(23, 37, 62, 0.8)),
|
||||
padding: WidgetStateProperty.all(const EdgeInsets.symmetric(vertical: 16)),
|
||||
shape: WidgetStateProperty.all(RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(12), // Set the border radius for the dropdown menu
|
||||
borderRadius: BorderRadius.circular(20), // Set the border radius for the dropdown menu
|
||||
)),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue