如何将墨水飞溅添加到可拖动的小部件中?

时间:2019-07-02 22:41:01

标签: android ios flutter flutter-layout flutter-animation

我想在拖动开始时显示墨水飞溅动画。我已经尝试过将可拖动对象包装在墨水池中,但是效果没有显示。

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),
          ),
        ));

0 个答案:

没有答案