From 3480fd2017c56384bb93c61b82e936f8ce200185 Mon Sep 17 00:00:00 2001 From: KristinaZoteva Date: Wed, 20 Apr 2022 15:48:37 +0400 Subject: [PATCH] Feat: add SafeArea. --- lib/src/flexible_bottom_sheet_route.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/flexible_bottom_sheet_route.dart b/lib/src/flexible_bottom_sheet_route.dart index 0676c17..afaaca3 100644 --- a/lib/src/flexible_bottom_sheet_route.dart +++ b/lib/src/flexible_bottom_sheet_route.dart @@ -274,7 +274,7 @@ class _FlexibleBottomSheetRoute extends PopupRoute { bottomSheet = Theme(data: theme!, child: bottomSheet); } - return bottomSheet; + return isSafeArea ? SafeArea(child: bottomSheet) : bottomSheet; } @override