• 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
..
material Loading commit data...
README.md Loading commit data...
action_sheet_test.dart Loading commit data...
activity_indicator_test.dart Loading commit data...
app_test.dart Loading commit data...
bottom_tab_bar_test.dart Loading commit data...
button_test.dart Loading commit data...
colors_test.dart Loading commit data...
context_menu_action_test.dart Loading commit data...
context_menu_test.dart Loading commit data...
date_picker_test.dart Loading commit data...
debug_test.dart Loading commit data...
dialog_test.dart Loading commit data...
icon_theme_data_test.dart Loading commit data...
localizations_test.dart Loading commit data...
nav_bar_test.dart Loading commit data...
nav_bar_transition_test.dart Loading commit data...
page_test.dart Loading commit data...
picker_test.dart Loading commit data...
refresh_test.dart Loading commit data...
route_test.dart Loading commit data...
scaffold_test.dart Loading commit data...
scrollbar_paint_test.dart Loading commit data...
scrollbar_test.dart Loading commit data...
search_field_test.dart Loading commit data...
segmented_control_test.dart Loading commit data...
slider_test.dart Loading commit data...
sliding_segmented_control_test.dart Loading commit data...
switch_test.dart Loading commit data...
tab_scaffold_test.dart Loading commit data...
tab_test.dart Loading commit data...
text_field_restoration_test.dart Loading commit data...
text_field_test.dart Loading commit data...
text_selection_test.dart Loading commit data...
theme_test.dart Loading commit data...