lint: Fix invalid assignment
Fix error: A value of type 'dynamic' can't be assigned to a variable of type 'int'. (invalid_assignment at [sanmill] lib/shared/picker.dart:76)
This commit is contained in:
parent
4df5dcd96d
commit
8d2afa2a5d
|
@ -71,9 +71,9 @@ Future<int> showPickerNumber(
|
||||||
),
|
),
|
||||||
onConfirm: (Picker picker, List value) async {
|
onConfirm: (Picker picker, List value) async {
|
||||||
debugPrint(value.toString());
|
debugPrint(value.toString());
|
||||||
final selectValues = picker.getSelectedValues();
|
final List selectValues = picker.getSelectedValues();
|
||||||
debugPrint(selectValues.toString());
|
debugPrint(selectValues.toString());
|
||||||
selectValue = selectValues[0];
|
selectValue = selectValues[0] as int;
|
||||||
},
|
},
|
||||||
).showDialog(context);
|
).showDialog(context);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue