Skip to content

Latest commit

History

History
25 lines (14 loc) 路 836 Bytes

File metadata and controls

25 lines (14 loc) 路 836 Bytes

MediaQuery as InheritedModel

Did you know?

When you call MediaQuery.of(context) inside a build method, the widget will rebuild when any of the MediaQuery properties change.

But there's a better way that lets you depend only on the properties you care about (and minimize unnecessary rebuilds). 馃憞


More info on this PR, which was merged and made it to the Flutter 3.10 stable release:


Found this useful? Show some love and share the original tweet 馃檹


Previous Next
Happy Birthday with records in Dart 3 Record Equality in Dart 3