Skip to content

Commit bfe5116

Browse files
make sure there's a minimum padding for hardware with no SafeArea at the bottom
1 parent 44160b1 commit bfe5116

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/samples/create_planar_and_geodetic_buffers/create_planar_and_geodetic_buffers_sample.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import 'package:arcgis_maps/arcgis_maps.dart';
1818
import 'package:flutter/material.dart';
19+
import 'dart:math';
1920

2021
import '../../utils/sample_state_support.dart';
2122

@@ -105,7 +106,11 @@ class _CreatePlanarAndGeodeticBuffersSampleState
105106
20.0,
106107
0.0,
107108
20.0,
108-
View.of(context).viewPadding.bottom / View.of(context).devicePixelRatio,
109+
max(
110+
20.0,
111+
View.of(context).viewPadding.bottom /
112+
View.of(context).devicePixelRatio,
113+
),
109114
),
110115
child: Column(
111116
mainAxisSize: MainAxisSize.min,

0 commit comments

Comments
 (0)