答案 0 :(得分:1)
Container(
margin: const EdgeInsets.only(top: 50),
height: 100,
width: 100,
decoration: BoxDecoration(
border: Border.all(color: Colors.black),
),
child: Stack(
children: <Widget>[
Positioned(
right: -35,
top: -35,
child: Image(
image: AssetImage("assets/icon/ic_notification.png"),
width: 100,
height: 100,
),
),
Column(
children: <Widget>[
Text("Item 1"),
Text("Item 2"),
Text("Item 3"),
],
),
],
),
),
答案 1 :(得分:1)
尝试一下。
Container(
child: Stack(
children : <widget>[
Positioned(
top : -100,
right : -100,
child : Image.asset("asstes/images/img1.png", fit : BoxFit.cover),
)
]
)
)
您无需参考整个视频。仅参考2分钟