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:
parent
49d342b9e7
commit
0933745b1f
1 changed files with 2 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ class UnitDropdown extends StatelessWidget {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: 200, // Constrain dropdown width
|
width: 200, // Constrain dropdown width
|
||||||
child: DropdownButton<String>(
|
child: DropdownButton<String>(
|
||||||
value: selectedUnit ?? variable.unit,
|
value: selectedUnit ?? variable.unit,
|
||||||
selectedItemBuilder: (context) => availableUnits.map((unit) =>
|
selectedItemBuilder: (context) => availableUnits.map((unit) =>
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 200,
|
width: 200,
|
||||||
|
|
@ -51,6 +51,7 @@ class UnitDropdown extends StatelessWidget {
|
||||||
dropdownPadding: const EdgeInsets.symmetric(vertical: 8),
|
dropdownPadding: const EdgeInsets.symmetric(vertical: 8),
|
||||||
menuMaxHeight: 400,
|
menuMaxHeight: 400,
|
||||||
isExpanded: true,
|
isExpanded: true,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue