forked from eatvio/eatvio_app
fat(recipes, diets): added list refreshing
This commit is contained in:
@@ -109,7 +109,7 @@ class _RecipeCreateScreenState extends State<RecipeCreateScreen> {
|
||||
if (isSuccess) {
|
||||
Future.delayed(const Duration(milliseconds: 500), () {
|
||||
if (!context.mounted) return;
|
||||
context.pop();
|
||||
context.pop('active');
|
||||
showBottomSheetWithBlur(
|
||||
userRootNavigator: true,
|
||||
context: context,
|
||||
@@ -157,7 +157,7 @@ class _RecipeCreateScreenState extends State<RecipeCreateScreen> {
|
||||
});
|
||||
if (isSuccess) {
|
||||
if (!context.mounted) return;
|
||||
context.pop();
|
||||
context.pop('drafted');
|
||||
} else {
|
||||
if (!context.mounted) return;
|
||||
showErrorDialog(context, title: 'Не удалось сохранить черновик');
|
||||
|
||||
Reference in New Issue
Block a user