setState instead of pushReplacement

This commit is contained in:
Álvaro González 2026-03-11 08:36:54 +01:00
parent 0c00158c92
commit 76d17f3a03

View file

@ -484,16 +484,9 @@ class _FormulaScreenState extends State<FormulaScreen> {
} }
// Replace the current FormulaScreen with the new DerivedFormula screen // Replace the current FormulaScreen with the new DerivedFormula screen
Navigator.pushReplacement( setState( (){
context, formula = derivedFormula;
MaterialPageRoute( });
builder: (context) => FormulaScreen(
formula: derivedFormula,
corpus: widget.corpus,
onSave: widget.onSave,
),
),
);
} catch (e, st) { } catch (e, st) {
errorHandler.notify(e,st); errorHandler.notify(e,st);
} }