@@ -201,32 +201,29 @@ class CameraPickerViewerState extends State<CameraPickerViewer> {
201
201
Widget buildBackButton (BuildContext context) {
202
202
return Semantics (
203
203
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,
230
227
),
231
228
),
232
229
),
@@ -322,7 +319,11 @@ class CameraPickerViewerState extends State<CameraPickerViewer> {
322
319
Widget buildForeground (BuildContext context) {
323
320
return SafeArea (
324
321
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
+ ),
326
327
child: Column (
327
328
mainAxisAlignment: MainAxisAlignment .spaceBetween,
328
329
children: < Widget > [
0 commit comments