Anyway to cancel currently dragging widget in flutter?
问题 I have a ternary operator in my home_screen: CircleData2.dk1 == 0 ? Padding(child: Center(child: Container(height: 50, width: 50, color: Colors.pink,)), padding: EdgeInsets.all(40),) : Try2(id: 1, reload: reload,), I want when CircleData.dk1 not equals 0 (it starts off equaling 1) to drop the current object that's dragging (Try2 is a custom widget that is a draggable, I'll show it in a moment) and just replace it with the: Padding(child: Center(child: Container(height: 50, width: 50, color: