【发布时间】:2020-06-05 15:04:20
【问题描述】:
我正在为移动设备和安卓电视(48 英寸电视)开发一个应用程序。我使用MediaQuery 调整字体大小和小部件大小。有没有更好的方法来做这些事情?
static double width(BuildContext context) => MediaQuery.of(context).size.width;
height: height * 1 / 32,
textSize: height * 1 / 32
Line > 容器小部件
CustomLine(
width: width * (1 / 8),
height: height * (1 / 512),
color: Palette.white,
),
【问题讨论】: