使用Flutter开发不同的屏幕尺寸?

时间:2019-04-17 05:48:36

标签: flutter flutter-layout flutter-dependencies flutter-animation flutter-positioned

我有一个即将要上传到appstore和playstore的应用程序,但我担心它在大小不同的不同手机屏幕上看起来可能很有趣(该应用程序仅适用于手机,而没有平板电脑),这是什么颤动为不同屏幕尺寸编码的最佳方法?

2 个答案:

答案 0 :(得分:3)

您使用MediaQuery来确定尺寸。

OrientationBuilder用于确定设备的方向。

Here是一本不错的文章,您可能想阅读。

答案 1 :(得分:3)