【问题标题】:How to make the design using widget in Flutter如何在 Flutter 中使用小部件进行设计
【发布时间】:2022-09-28 18:36:59
【问题描述】:

如果我们点击“Is there an Bitcode Method iOS App?”,那么应该会显示答案。所以我尝试在颤振中使用卡,但它不起作用。所以你能告诉我这个怎么做吗?

enter image description here

  • 尝试使用线性渐变。

标签: flutter flutter-layout flutter-dependencies


【解决方案1】:

用户LinearGradient实现你的设计

LinearGradient(
                begin: Alignment.topCenter,
                end: Alignment.bottomCenter,
                  colors: [
                    //color1
                    //color2,
                  ],
                  stops: [0, 1]
)

【讨论】:

    猜你喜欢
    • 2022-07-20
    • 2018-08-16
    • 1970-01-01
    • 2021-11-13
    • 2019-02-14
    • 2020-03-10
    • 1970-01-01
    • 2022-01-13
    • 2022-01-21
    相关资源
    最近更新 更多