Skip to content

Commit 59ed7aa

Browse files
authored
Merge pull request #199 from espresso3389/master
#197 shadowThemeOnly is removed on flutter master
2 parents 22cfd57 + 2e8d5ce commit 59ed7aa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/flutter_datetime_picker.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,7 @@ class _DatePickerRoute<T> extends PopupRoute<T> {
212212
pickerModel: pickerModel,
213213
),
214214
);
215-
ThemeData inheritTheme = Theme.of(context);
216-
if (inheritTheme != null) {
217-
bottomSheet = new Theme(data: inheritTheme, child: bottomSheet);
218-
}
219-
return bottomSheet;
215+
return InheritedTheme.captureAll(context, bottomSheet);
220216
}
221217
}
222218

0 commit comments

Comments
 (0)