update
This commit is contained in:
parent
17a1430ef0
commit
9598e17abb
1 changed files with 20 additions and 11 deletions
|
|
@ -35,17 +35,26 @@ class DropDownWidget extends StatelessWidget {
|
||||||
border: Border.all(color: Colors.white), // Set the border color
|
border: Border.all(color: Colors.white), // Set the border color
|
||||||
),
|
),
|
||||||
child: DropdownMenu(
|
child: DropdownMenu(
|
||||||
initialSelection: '',
|
initialSelection: '',
|
||||||
dropdownMenuEntries: [
|
dropdownMenuEntries: [
|
||||||
for (var item in list)
|
for (var item in list)
|
||||||
DropdownMenuEntry(
|
DropdownMenuEntry(
|
||||||
label: item[listTitle].toString(),
|
label: item[listTitle].toString(),
|
||||||
value: item[listTitle],
|
value: item[listTitle],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
onSelected: onChanged,
|
onSelected: onChanged,
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width * 0.8,
|
||||||
textStyle: GoogleFonts.outfit(textStyle: TextStyle(color: Colors.white))),
|
menuHeight: MediaQuery.of(context).size.width * 0.9,
|
||||||
|
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)),
|
||||||
|
shape: WidgetStateProperty.all(RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(12), // Set the border radius for the dropdown menu
|
||||||
|
)),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue