Fix picker demo safe area layout (#22244)
This commit is contained in:
parent
63efe4c4ac
commit
6b94e6b168
@ -75,6 +75,7 @@ class _CupertinoPickerDemoState extends State<CupertinoPickerDemo> {
|
|||||||
Widget _buildBottomPicker(Widget picker) {
|
Widget _buildBottomPicker(Widget picker) {
|
||||||
return Container(
|
return Container(
|
||||||
height: _kPickerSheetHeight,
|
height: _kPickerSheetHeight,
|
||||||
|
padding: const EdgeInsets.only(top: 8.0),
|
||||||
color: CupertinoColors.white,
|
color: CupertinoColors.white,
|
||||||
child: DefaultTextStyle(
|
child: DefaultTextStyle(
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
@ -85,6 +86,7 @@ class _CupertinoPickerDemoState extends State<CupertinoPickerDemo> {
|
|||||||
// Blocks taps from propagating to the modal sheet and popping.
|
// Blocks taps from propagating to the modal sheet and popping.
|
||||||
onTap: () {},
|
onTap: () {},
|
||||||
child: SafeArea(
|
child: SafeArea(
|
||||||
|
top: false,
|
||||||
child: picker,
|
child: picker,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user