Skip to content

Commit

Permalink
💄 Improve paddings of the heading actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed May 12, 2024
1 parent 676d452 commit c56ad3d
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions lib/src/states/camera_picker_viewer_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -201,32 +201,29 @@ class CameraPickerViewerState extends State<CameraPickerViewer> {
Widget buildBackButton(BuildContext context) {
return Semantics(
sortKey: const OrdinalSortKey(0),
child: Padding(
padding: const EdgeInsets.all(10),
child: IconButton(
onPressed: () {
if (isSavingEntity) {
return;
}
if (previewFile.existsSync()) {
previewFile.delete();
}
Navigator.of(context).pop();
},
padding: EdgeInsets.zero,
constraints: BoxConstraints.tight(const Size.square(28)),
tooltip: MaterialLocalizations.of(context).backButtonTooltip,
iconSize: 18,
icon: Container(
padding: const EdgeInsets.all(5),
decoration: const BoxDecoration(
color: Colors.white,
shape: BoxShape.circle,
),
child: const Icon(
Icons.keyboard_return_rounded,
color: Colors.black,
),
child: IconButton(
onPressed: () {
if (isSavingEntity) {
return;
}
if (previewFile.existsSync()) {
previewFile.delete();
}
Navigator.of(context).pop();
},
padding: EdgeInsets.zero,
constraints: BoxConstraints.tight(const Size.square(28)),
tooltip: MaterialLocalizations.of(context).backButtonTooltip,
iconSize: 18,
icon: Container(
padding: const EdgeInsets.all(5),
decoration: const BoxDecoration(
color: Colors.white,
shape: BoxShape.circle,
),
child: const Icon(
Icons.keyboard_return_rounded,
color: Colors.black,
),
),
),
Expand Down Expand Up @@ -322,7 +319,11 @@ class CameraPickerViewerState extends State<CameraPickerViewer> {
Widget buildForeground(BuildContext context) {
return SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 20),
padding: const EdgeInsetsDirectional.only(
start: 12.0,
end: 12.0,
bottom: 12.0,
),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Expand Down

0 comments on commit c56ad3d

Please sign in to comment.