Skip to content

Commit c56ad3d

Browse files
committed
💄 Improve paddings of the heading actions
1 parent 676d452 commit c56ad3d

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

lib/src/states/camera_picker_viewer_state.dart

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -201,32 +201,29 @@ class CameraPickerViewerState extends State<CameraPickerViewer> {
201201
Widget buildBackButton(BuildContext context) {
202202
return Semantics(
203203
sortKey: const OrdinalSortKey(0),
204-
child: Padding(
205-
padding: const EdgeInsets.all(10),
206-
child: IconButton(
207-
onPressed: () {
208-
if (isSavingEntity) {
209-
return;
210-
}
211-
if (previewFile.existsSync()) {
212-
previewFile.delete();
213-
}
214-
Navigator.of(context).pop();
215-
},
216-
padding: EdgeInsets.zero,
217-
constraints: BoxConstraints.tight(const Size.square(28)),
218-
tooltip: MaterialLocalizations.of(context).backButtonTooltip,
219-
iconSize: 18,
220-
icon: Container(
221-
padding: const EdgeInsets.all(5),
222-
decoration: const BoxDecoration(
223-
color: Colors.white,
224-
shape: BoxShape.circle,
225-
),
226-
child: const Icon(
227-
Icons.keyboard_return_rounded,
228-
color: Colors.black,
229-
),
204+
child: IconButton(
205+
onPressed: () {
206+
if (isSavingEntity) {
207+
return;
208+
}
209+
if (previewFile.existsSync()) {
210+
previewFile.delete();
211+
}
212+
Navigator.of(context).pop();
213+
},
214+
padding: EdgeInsets.zero,
215+
constraints: BoxConstraints.tight(const Size.square(28)),
216+
tooltip: MaterialLocalizations.of(context).backButtonTooltip,
217+
iconSize: 18,
218+
icon: Container(
219+
padding: const EdgeInsets.all(5),
220+
decoration: const BoxDecoration(
221+
color: Colors.white,
222+
shape: BoxShape.circle,
223+
),
224+
child: const Icon(
225+
Icons.keyboard_return_rounded,
226+
color: Colors.black,
230227
),
231228
),
232229
),
@@ -322,7 +319,11 @@ class CameraPickerViewerState extends State<CameraPickerViewer> {
322319
Widget buildForeground(BuildContext context) {
323320
return SafeArea(
324321
child: Padding(
325-
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 20),
322+
padding: const EdgeInsetsDirectional.only(
323+
start: 12.0,
324+
end: 12.0,
325+
bottom: 12.0,
326+
),
326327
child: Column(
327328
mainAxisAlignment: MainAxisAlignment.spaceBetween,
328329
children: <Widget>[

0 commit comments

Comments
 (0)