【发布时间】:2020-12-17 07:30:04
【问题描述】:
我想要实现的是: 我已经取得并坚持的是: 我在容器内使用墨水瓶小部件
代码:
Container(
alignment: Alignment.center,
child: InkWell(
child: new Container(
width: 120.0,
height: 120.0,
padding: const EdgeInsets.all(20.0),//I used some padding without fixed width and height
decoration: new BoxDecoration(
shape: BoxShape.circle,// You can use like this way or like the below line
// borderRadius: new BorderRadius.circular(30.0),
color: Colors.white,
),
child: new Text("", style: new TextStyle(color: Colors.black, fontSize: 30.0, fontWeight: FontWeight.bold)),
alignment: Alignment.center,
// You can add a Icon instead of text also, like below.
//child: new Icon(Icons.arrow_forward, size: 50.0, color: Colors.black38)),
),
请帮忙。
【问题讨论】:
-
请不要破坏您的帖子。我们的目标是让问题及其答案对其他有相同主题问题的人具有持久的效用。删除图像会阻碍该目标并使答案为提供解决方案所做的工作无效。
标签: flutter flutter-layout flutter-dependencies flutter-web flutter-animation