fix: correct dropdown indentation and syntax in unit selector

Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
This commit is contained in:
Álvaro González 2025-09-14 17:03:02 +02:00
parent 49d342b9e7
commit 0933745b1f

View file

@ -24,7 +24,7 @@ class UnitDropdown extends StatelessWidget {
return SizedBox(
width: 200, // Constrain dropdown width
child: DropdownButton<String>(
value: selectedUnit ?? variable.unit,
value: selectedUnit ?? variable.unit,
selectedItemBuilder: (context) => availableUnits.map((unit) =>
SizedBox(
width: 200,
@ -51,6 +51,7 @@ class UnitDropdown extends StatelessWidget {
dropdownPadding: const EdgeInsets.symmetric(vertical: 8),
menuMaxHeight: 400,
isExpanded: true,
),
);
}
}