diff --git a/lib/picker.dart b/lib/picker.dart index 5620b4f..f7780f1 100644 --- a/lib/picker.dart +++ b/lib/picker.dart @@ -479,8 +479,7 @@ class PickerWidgetState extends State<_PickerWidget> { child: picker.title == null ? SizedBox() : DefaultTextStyle( - style: (theme!.textTheme.headline6 ?? theme!.textTheme.titleLarge) - ?.copyWith( + style: theme!.textTheme.titleLarge?.copyWith( fontSize: Picker.DefaultTextSize, ) ?? TextStyle(fontSize: Picker.DefaultTextSize), @@ -736,7 +735,7 @@ abstract class PickerAdapter { : Colors.black87, fontFamily: theme == null ? "" - : theme.textTheme.headline6?.fontFamily, + : theme.textTheme.titleLarge?.fontFamily, fontSize: Picker.DefaultTextSize), child: child != null ? (isSel && picker!.selectedIconTheme != null @@ -781,7 +780,7 @@ abstract class PickerAdapter { fontSize: _txtSize, fontFamily: theme == null ? "" - : theme.textTheme.headline6?.fontFamily), + : theme.textTheme.titleLarge?.fontFamily), child: Wrap( children: items, )));