美文网首页
让Column局部内容滑动

让Column局部内容滑动

作者: 靳兆鲁 | 来源:发表于2022-12-26 17:29 被阅读0次
SafeArea(
          child: Padding(
            padding: const EdgeInsets.all(16).copyWith(
              bottom: 0,
            ),
            child: Column(
              children: [
                Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    ...
                  ],
                ),
                // 下面的内容是可滑动的
                Expanded(
                  child: SingleChildScrollView(
                    child: Center(
                      child: Column(
                        children: const [
                          ...
                        ],
                      ),
                    ),
                  ),
                ),
              ],
            ),
          ),
        )

相关文章

网友评论

      本文标题:让Column局部内容滑动

      本文链接:https://www.haomeiwen.com/subject/hnsgqdtx.html