Commit 6b94e6b1 authored by xster's avatar xster Committed by Dan Field

Fix picker demo safe area layout (#22244)

parent 63efe4c4
...@@ -75,6 +75,7 @@ class _CupertinoPickerDemoState extends State<CupertinoPickerDemo> { ...@@ -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> { ...@@ -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,
), ),
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment