From ae4f9c25c4b02bf85b60112ec3bef1821fb7280b Mon Sep 17 00:00:00 2001 From: Dian Bayu Nugroho Date: Sun, 25 Feb 2024 19:58:41 +0700 Subject: [PATCH] fix: component select form --- lib/application/component/select_form/select_form_view.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/application/component/select_form/select_form_view.dart b/lib/application/component/select_form/select_form_view.dart index 0eb826b..6ca2fa5 100644 --- a/lib/application/component/select_form/select_form_view.dart +++ b/lib/application/component/select_form/select_form_view.dart @@ -47,6 +47,7 @@ class SelectFormView extends StatelessWidget { bottomSheet() { showModalBottomSheet( context: context, + isDismissible: false, shape: RoundedRectangleBorder( borderRadius: BorderRadius.only( topLeft: _borderRadius, @@ -82,7 +83,10 @@ class SelectFormView extends StatelessWidget { ), ), IconButton( - onPressed: () => Navigator.pop(context), + onPressed: () { + ctrl?.clear(); + Navigator.pop(context); + }, icon: const Icon( Icons.clear, size: 26,