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
|
||||
Navigator.pushReplacement(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => FormulaScreen(
|
||||
formula: derivedFormula,
|
||||
corpus: widget.corpus,
|
||||
onSave: widget.onSave,
|
||||
),
|
||||
),
|
||||
);
|
||||
setState( (){
|
||||
formula = derivedFormula;
|
||||
});
|
||||
} catch (e, st) {
|
||||
errorHandler.notify(e,st);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue