[我添加了使面板插件向上滑动的插件。这是以下代码
collapsed:Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: radius
),
child: Padding(
padding: EdgeInsets.only(left: 5,right: 5),
child:Container(
height: 90,
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Container(//first container
height: 20,
width: 60,
child: Padding(
padding: EdgeInsets.only(bottom: 5,top: 5),
child:RaisedButton(
color: Colors.white,
onPressed: (){},
shape: RoundedRectangleBorder(borderRadius: new BorderRadius.circular(30.0))
) ,
),
),
Container(//second container
height: 60,
child: ListTile(
onTap: (){},
title: Text('Cart: ',style: TextStyle(color: Colors.black),),
trailing: Text("Total( "+" :sum)"),
),
)
]
),
)
)
),
那么如何像第一个图像一样移动第一个容器?
使用库slide_up_panel: