Browse Source

Support landscape with SafeArea

guolin 4 năm trước cách đây
mục cha
commit
145dfb1af6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/flutter_datetime_picker.dart

+ 1 - 1
lib/flutter_datetime_picker.dart

@@ -307,7 +307,7 @@ class _DatePickerState extends State<_DatePickerComponent> {
               child: GestureDetector(
                 child: Material(
                   color: theme.backgroundColor ?? Colors.white,
-                  child: _renderPickerView(theme),
+                  child: SafeArea(child: _renderPickerView(theme)),
                 ),
               ),
             ),