setState instead of pushReplacement
This commit is contained in:
parent
0c00158c92
commit
76d17f3a03
1 changed files with 3 additions and 10 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue