Browse Source

Update flutter_datetime_picker.dart

static ThemeData of BuildContext doesn't contain named parameter shadowThemeOnly:tre. From the latest version of Flutter we gets the error:
Error: No named parameter with the name 'shadowThemeOnly'.
    ThemeData inheritTheme = Theme.of(context, shadowThemeOnly: true);
sirajulhudalabs 5 years ago
parent
commit
1f4e9974f6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/flutter_datetime_picker.dart

+ 1 - 1
lib/flutter_datetime_picker.dart

@@ -212,7 +212,7 @@ class _DatePickerRoute<T> extends PopupRoute<T> {
         pickerModel: pickerModel,
       ),
     );
-    ThemeData inheritTheme = Theme.of(context, shadowThemeOnly: true);
+    ThemeData inheritTheme = Theme.of(context);
     if (inheritTheme != null) {
       bottomSheet = new Theme(data: inheritTheme, child: bottomSheet);
     }