From 96cdb82ca4d3ba0b30e174f4f04b1fe9c51b15e3 Mon Sep 17 00:00:00 2001 From: Chirag Bargoojar Date: Thu, 11 Aug 2022 15:57:55 +0530 Subject: [PATCH] fix: removed .then() handler --- .../flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart b/frontend/app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart index 78aa3d0b7f..5db6afacef 100644 --- a/frontend/app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart +++ b/frontend/app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart @@ -21,11 +21,8 @@ extension IntoDialog on Widget { child: this, ), context, - ).then( - (value) { - dialogFocusNode.dispose(); - }, ); + dialogFocusNode.dispose(); } }