我想在拖动开始时显示墨水飞溅动画。我已经尝试过将可拖动对象包装在墨水池中,但是效果没有显示。
Scaffold(
appBar: AppBar(
title: Text('TES'),
),
body: Draggable(
child: Tile.draw(tileSize, val, 0.0, Theme.of(context).primaryColor),
feedback:
Tile.draw(tileSize, val, 20.0, Theme.of(context).primaryColor),
childWhenDragging: InkWell(
onTap: () => print('INK!'),
highlightColor: Colors.green,
splashColor: Colors.green,
customBorder: PolygonBorder(sides: 6, borderRadius: 6),
child:
Tile.draw(tileSize, val, 0.0, Theme.of(context).disabledColor),
),
));