24 hour clock widget android9/24/2023 ![]() ![]() See below for a minimal code example: import 'package:flutter/material. ![]() What you want to do is possible, but you have to be slightly careful about how you do it. When you call MediaQuery.of(context), it basically traces up the tree until it finds (or doesn't find) a MediaQuery widget, and then returns the data associated with the widget. The widgets each have a Context which you can think of as a node in the tree. ![]() Essentially, there is a tree of widgets in any given page. Before reading this answer, you need to know how MediaQuery.of() works. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |