【问题标题】:Flutter - How to create a TabBar View with top bottom as the same levels as the tabFlutter - 如何创建一个顶部底部与选项卡相同级别的 TabBar 视图
【发布时间】:2021-12-08 07:42:37
【问题描述】:

我有一个 TabBar,它在视图中包含表单项。目前看起来像这样。

如您所见,“取消”和“继续”按钮位于顶部。我使用了一个带有 AppBar 的 Scalfold 小部件。

问题是我希望继续底部与选项卡对齐。像这样。

我怎样才能得到想要的结果?

【问题讨论】:

    标签: flutter


    【解决方案1】:
    appBar: AppBar(
                automaticallyImplyLeading: false,
                title: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  crossAxisAlignment: CrossAxisAlignment.end,
                  children: <Widget>[
                    YourFirstButton,
                    YourTabBar(),
                    YourSecondButton(),
            ],
          ),
        ),
    

    【讨论】:

      猜你喜欢
      • 2022-01-17
      • 1970-01-01
      • 2015-10-28
      • 2014-07-09
      • 1970-01-01
      • 2022-08-16
      • 2017-04-25
      • 2023-03-25
      • 1970-01-01
      相关资源
      最近更新 更多