我正在尝试制作卡片Here a example of what i'm trying to do顶部带有“气球”的卡片
我正在使用Flutter,最近一次更新是,我尝试添加具有定位的堆栈,但是我遇到了这个可怕的thing
关于此的我的代码是:
feature/theming
我期望的答复是上面的链接
答案 0 :(得分:0)
请尝试以下操作:-
Column(
children: <Widget>[
Container(
alignment: Alignment.topLeft,
child: Column(
children: <Widget>[
Container(
width: 40,
height: 40,
alignment: Alignment.center,
child: Text('1'),
decoration: BoxDecoration(
color: Colors.redAccent, shape: BoxShape.circle),
),
Container(
height: 40,
width: 2,
color: Colors.green,
),
],
),
),
Container(
width: double.infinity,
child: Card(
child: Container(
color: Colors.blue,
child: Text('aaaaaaaa'),
),
),
)
],
)