Skip to content

Commit

Permalink
ajust on the deprecated function window
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Soares committed Jul 3, 2023
1 parent dd8eb1d commit 8a0b63f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/views/widget/time_picker_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,8 @@ class _HourMinuteTextFieldState extends State<_HourMinuteTextField> {
//
// resolved, remove the window check for semantics being enabled on web.
final String? hintText = MediaQuery.of(context).accessibleNavigation ||
ui.window.semanticsEnabled
WidgetsBinding.instance.window.semanticsEnabled
// ui.window.semanticsEnabled
? widget.semanticHintText
: (focusNode.hasFocus ? null : _formattedValue);
inputDecoration = inputDecoration.copyWith(
Expand Down

0 comments on commit 8a0b63f

Please sign in to comment.