Skip to content

Commit

Permalink
fix: Defects in Flutter 3.22 have been addressed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed May 14, 2024
1 parent 4a88a43 commit d522bad
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,7 @@ class PickerWidgetState<T> 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),
Expand Down Expand Up @@ -736,7 +735,7 @@ abstract class PickerAdapter<T> {
: Colors.black87,
fontFamily: theme == null
? ""
: theme.textTheme.headline6?.fontFamily,
: theme.textTheme.titleLarge?.fontFamily,
fontSize: Picker.DefaultTextSize),
child: child != null
? (isSel && picker!.selectedIconTheme != null
Expand Down Expand Up @@ -781,7 +780,7 @@ abstract class PickerAdapter<T> {
fontSize: _txtSize,
fontFamily: theme == null
? ""
: theme.textTheme.headline6?.fontFamily),
: theme.textTheme.titleLarge?.fontFamily),
child: Wrap(
children: items,
)));
Expand Down

0 comments on commit d522bad

Please sign in to comment.