【发布时间】:2021-11-30 07:39:33
【问题描述】:
我正在尝试获得一个带有“弹出”图标的栏
我的问题是即使我使用以下命令,包含对象的容器也不是不可见的:'color: Colors.trasparent'
Widget _bottomNavigator(String uid) {
return Container(
height: 50,
color: Colors.transparent,
child: Offstage(
offstage: !_isVisible,
child: Stack(children: [
Align(
alignment: Alignment.bottomCenter,
child: Container(
height: 20,
color: iconColor,
)),
Align(
alignment: Alignment.bottomCenter,
child: Container(
height: 50,
constraints: BoxConstraints.tightForFinite(),
color: Colors.transparent,
child: TextButton.icon(
icon: Icon(
Icons.add_photo_alternate,
color: gradientBeginColor,
size: 40,
),
label: Text(
'',
),
onPressed: () async {...},
),
),
),
]),
有谁知道如何使容器不再可见?
谢谢
【问题讨论】:
标签: flutter dart flutter-layout containers alignment