Is there a simple (non-LayoutBuilder) way to size an element relative to screen size (width/height)? For example: how do I set the width of a CardView to be 65% of the scree
This might be a little more clear:
double width = MediaQuery.of(context).size.width; double yourWidth = width * 0.65;
Hope this solved your problem.