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) {
|
||||
return Container(
|
||||
height: _kPickerSheetHeight,
|
||||
padding: const EdgeInsets.only(top: 8.0),
|
||||
color: CupertinoColors.white,
|
||||
child: DefaultTextStyle(
|
||||
style: const TextStyle(
|
||||
@ -85,6 +86,7 @@ class _CupertinoPickerDemoState extends State<CupertinoPickerDemo> {
|
||||
// Blocks taps from propagating to the modal sheet and popping.
|
||||
onTap: () {},
|
||||
child: SafeArea(
|
||||
top: false,
|
||||
child: picker,
|
||||
),
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user