• Greg Spencer's avatar
    Update `MediaQuery` documentation to highlight asynchronous nature of size (#135719) · a5e3e785
    Greg Spencer authored
    ## Description
    
    This updates the documentation for `MediaQuery` and `Overlay` to include the following:
    
    - That `MediaQueryData.size` is set asynchronously, and doesn't necessarily reflect the size of the current frame.
    - That the specific `MediaQuery.sizeOf` and related methods are preferred over the more generic `MediaQuery.of`.
    - That the size of the `Overlay` isn't necessarily the size returned by `MediaQueryData.size`
    
    As well as adding some symbol links, and fixing some error in documentation.
    
    ## Tests
     - Documentation only
    a5e3e785
binding.dart 33.1 KB