【问题标题】:Developing for different screen sizes using flutter?使用颤振开发不同的屏幕尺寸?
【发布时间】:2019-09-07 07:06:28
【问题描述】:

我有一个应用程序,我将很快上传到应用程序商店和 Playstore,但我担心它在不同尺寸的手机屏幕上看起来很有趣(该应用程序仅适用于手机,没有平板电脑)使用 Flutter 针对不同屏幕尺寸进行编码的最佳方式?

【问题讨论】:

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


    【解决方案1】:

    【讨论】:

    • 哈哈,我提到了同一篇文章。你的答案和我的没有什么不同。
    • 我猜,我们同时回答:) 巧合
    【解决方案2】:

    您使用MediaQuery 来确定大小。

    OrientationBuilder 用于设备的方向。

    Here 是一篇您可能想阅读的好文章。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-04
      • 2020-04-08
      • 2021-02-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-23
      • 2015-02-28
      相关资源
      最近更新 更多