[mob][photos] Fix safearea issues

This commit is contained in:
ashilkn
2024-08-14 17:21:23 +05:30
parent f40f39984a
commit ecbd2b4480
2 changed files with 44 additions and 40 deletions

View File

@@ -73,7 +73,8 @@ class ActionSheetWidget extends StatelessWidget {
title == null && bodyWidget == null && body == null;
final extraWidth = MediaQuery.of(context).size.width - restrictedMaxWidth;
final double? horizontalPadding = extraWidth > 0 ? extraWidth / 2 : null;
return Padding(
return SafeArea(
child: Padding(
padding: EdgeInsets.fromLTRB(
horizontalPadding ?? 12,
12,
@@ -118,6 +119,7 @@ class ActionSheetWidget extends StatelessWidget {
),
),
),
),
);
}
}

View File

@@ -175,7 +175,9 @@ class SubFaqWidget extends StatelessWidget {
barrierColor: Colors.black87,
context: context,
builder: (context) {
return const BillingQuestionsWidget();
return const SafeArea(
child: BillingQuestionsWidget(),
);
},
);
},