flutter - 如何摆脱appbar和body之间的界限?
问题描述
我有一个应用栏,在正文中有一个专栏。我想以一种你不知道应用栏结束和列开始的方式来实现它。为此,我将应用栏的高度设置为零,并且应用栏和列中的小部件的背景颜色相同。然而,似乎有一条线将两者分开,我就是无法摆脱。
这是代码:
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: SizedBox(),
backgroundColor: Colors.blue,
title: Text("Profile"),
centerTitle: true,
elevation: 0,
),
body: Column(
children: [
SizedBox(
height: 240,
child: Stack(
children: [
ClipPath(
clipper: CustomShape(),
child: Container(
height: 150,
color: Colors.blue,
),
)
],
),
),
],
),
);
}
这是线/分隔线的样子:
我想过摆脱 appbar 并只放置一个容器来代替它,但这似乎有点麻烦,所以我想在应用之前检查是否有任何其他我可以考虑的解决方案。
解决方案
推荐阅读
- html - XSLT:如何将 2 个 xml 文件合并到一张表中
- c# - 如何使用 OnChange 事件制作 HtmlSelect 控件以触发函数背后的 C# 代码
- javascript - 如何以 urdu 格式从数据库中检索 urdu 数据?
- javascript - 设置数组输入php的值
- r - 如何在 r 的 posixlt 中设置日、月和年?
- javascript - 响应式光标动画
- php - OpenCart 3 存储文件夹难题
- linux - 在 Oracle Linux 上从光纤通道 SAN 装载存储
- python - 下载 SQL for Python 时出错
- php - 当标签被格式化并从 url 检索时,SQL 按标签搜索文章