Changed icon

This commit is contained in:
Álvaro González 2026-03-11 09:56:28 +01:00
parent 0c00158c92
commit 577c2efcc8

View file

@ -395,7 +395,7 @@ class _FormulaScreenState extends State<FormulaScreen> {
Expanded( Expanded(
child: isCategorical child: isCategorical
? DropdownButtonFormField<String>( ? DropdownButtonFormField<String>(
value: _selectedValues[variable.name], initialValue: _selectedValues[variable.name],
items: variable.values! items: variable.values!
.map((v) => DropdownMenuItem<String>(value: v, child: Text(v))) .map((v) => DropdownMenuItem<String>(value: v, child: Text(v)))
.toList(), .toList(),
@ -433,7 +433,7 @@ class _FormulaScreenState extends State<FormulaScreen> {
const SizedBox(width: 8), const SizedBox(width: 8),
if (variable.unit != null && !isCategorical) if (variable.unit != null && !isCategorical)
IconButton( IconButton(
icon: const Icon(Icons.swap_horiz), icon: const Icon(Icons.arrow_downward),
tooltip: 'Solve for ${variable.name}', tooltip: 'Solve for ${variable.name}',
onPressed: () { onPressed: () {
_solveForVariable(variable); _solveForVariable(variable);