• Greg Spencer's avatar
    Remove `nullOk` in `MediaQuery.of` (#68736) · 55289324
    Greg Spencer authored
    Adds MediaQuery.maybeOf to replace calling MediaQuery.of(context, nullOk: true), and removes the nullOk parameter. Also changes MediaQuery.of to return a non-nullable value, and removes many instances of the ! operator, reducing the possible places where a null dereference could occur.
    55289324
Name
Last commit
Last update
..
action_sheet.dart Loading commit data...
activity_indicator.dart Loading commit data...
app.dart Loading commit data...
bottom_tab_bar.dart Loading commit data...
button.dart Loading commit data...
colors.dart Loading commit data...
constants.dart Loading commit data...
context_menu.dart Loading commit data...
context_menu_action.dart Loading commit data...
date_picker.dart Loading commit data...
debug.dart Loading commit data...
dialog.dart Loading commit data...
icon_theme_data.dart Loading commit data...
icons.dart Loading commit data...
interface_level.dart Loading commit data...
localizations.dart Loading commit data...
nav_bar.dart Loading commit data...
page_scaffold.dart Loading commit data...
picker.dart Loading commit data...
refresh.dart Loading commit data...
route.dart Loading commit data...
scrollbar.dart Loading commit data...
search_field.dart Loading commit data...
segmented_control.dart Loading commit data...
slider.dart Loading commit data...
sliding_segmented_control.dart Loading commit data...
switch.dart Loading commit data...
tab_scaffold.dart Loading commit data...
tab_view.dart Loading commit data...
text_field.dart Loading commit data...
text_selection.dart Loading commit data...
text_theme.dart Loading commit data...
theme.dart Loading commit data...
thumb_painter.dart Loading commit data...