Draggable can be accepted when the data is null (#97355)

This commit is contained in:
xubaolin
2022-02-24 07:19:22 +08:00
committed by GitHub
parent 9e7cc970ea
commit 2ad0ac0ef2
4 changed files with 130 additions and 37 deletions

View File

@@ -81,9 +81,9 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
),
);
},
onAccept: (int data) {
onAccept: (int? data) {
setState(() {
acceptedData += data;
acceptedData += data!;
});
},
),