mirror of
https://github.com/ente-io/ente.git
synced 2025-08-14 10:16:10 +00:00
[mob][photos] Fix safearea issues
This commit is contained in:
@@ -73,46 +73,48 @@ class ActionSheetWidget extends StatelessWidget {
|
|||||||
title == null && bodyWidget == null && body == null;
|
title == null && bodyWidget == null && body == null;
|
||||||
final extraWidth = MediaQuery.of(context).size.width - restrictedMaxWidth;
|
final extraWidth = MediaQuery.of(context).size.width - restrictedMaxWidth;
|
||||||
final double? horizontalPadding = extraWidth > 0 ? extraWidth / 2 : null;
|
final double? horizontalPadding = extraWidth > 0 ? extraWidth / 2 : null;
|
||||||
return Padding(
|
return SafeArea(
|
||||||
padding: EdgeInsets.fromLTRB(
|
child: Padding(
|
||||||
horizontalPadding ?? 12,
|
padding: EdgeInsets.fromLTRB(
|
||||||
12,
|
horizontalPadding ?? 12,
|
||||||
horizontalPadding ?? 12,
|
12,
|
||||||
32,
|
horizontalPadding ?? 12,
|
||||||
),
|
32,
|
||||||
child: Container(
|
),
|
||||||
decoration: BoxDecoration(boxShadow: shadowMenuLight),
|
child: Container(
|
||||||
child: ClipRRect(
|
decoration: BoxDecoration(boxShadow: shadowMenuLight),
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(8)),
|
child: ClipRRect(
|
||||||
child: Container(
|
borderRadius: const BorderRadius.all(Radius.circular(8)),
|
||||||
color: backgroundElevated2Dark,
|
child: Container(
|
||||||
child: Padding(
|
color: backgroundElevated2Dark,
|
||||||
padding: EdgeInsets.fromLTRB(
|
child: Padding(
|
||||||
24,
|
padding: EdgeInsets.fromLTRB(
|
||||||
24,
|
24,
|
||||||
24,
|
24,
|
||||||
isTitleAndBodyNull ? 24 : 28,
|
24,
|
||||||
),
|
isTitleAndBodyNull ? 24 : 28,
|
||||||
child: Column(
|
),
|
||||||
mainAxisSize: MainAxisSize.min,
|
child: Column(
|
||||||
children: [
|
mainAxisSize: MainAxisSize.min,
|
||||||
isTitleAndBodyNull
|
children: [
|
||||||
? const SizedBox.shrink()
|
isTitleAndBodyNull
|
||||||
: Padding(
|
? const SizedBox.shrink()
|
||||||
padding: const EdgeInsets.only(bottom: 36),
|
: Padding(
|
||||||
child: ContentContainerWidget(
|
padding: const EdgeInsets.only(bottom: 36),
|
||||||
title: title,
|
child: ContentContainerWidget(
|
||||||
bodyWidget: bodyWidget,
|
title: title,
|
||||||
body: body,
|
bodyWidget: bodyWidget,
|
||||||
bodyHighlight: bodyHighlight,
|
body: body,
|
||||||
actionSheetType: actionSheetType,
|
bodyHighlight: bodyHighlight,
|
||||||
isCheckIconGreen: isCheckIconGreen,
|
actionSheetType: actionSheetType,
|
||||||
|
isCheckIconGreen: isCheckIconGreen,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
ActionButtons(
|
||||||
ActionButtons(
|
actionButtons,
|
||||||
actionButtons,
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@@ -175,7 +175,9 @@ class SubFaqWidget extends StatelessWidget {
|
|||||||
barrierColor: Colors.black87,
|
barrierColor: Colors.black87,
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return const BillingQuestionsWidget();
|
return const SafeArea(
|
||||||
|
child: BillingQuestionsWidget(),
|
||||||
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user