创建这样的用户界面和动画
这是链接,请帮助link
Dismissible(
resizeDuration: null,
onDismissed: (DismissDirection direction) {
setState(() {
_counter += direction == DismissDirection.endToStart ? 1 : -1;
});
},
key: new ValueKey(_counter),
child: new Center(
child: Container(
width: double.infinity,
color: Colors.redAccent,
child: SizedBox(
width: double.maxFinite,
child: Padding(
padding: EdgeInsets.fromLTRB(150, 0.0, 150.0, 0.0),
child: new Text(
'$_counter',
style: Theme.of(context).textTheme.display4,
我做了这件事