You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in code should be like this
your code
onClick: () {
if (widget.bottomPickerType ==BottomPickerType.simple) {
widget.onSubmit?.call(selectedItemIndex);
} else if (widget.bottomPickerType ==BottomPickerType.dateTime ||
widget.bottomPickerType == BottomPickerType.time ) {
widget.onSubmit?.call(selectedDateTime);
} else {
widget.onSubmitPressed?.call(
selectedFirstDateTime,
selectedSecondDateTime,
);
}
Navigator.pop(context);
},
the right code should be like this
onClick: () {
if (widget.bottomPickerType ==BottomPickerType.rangeDateTime) {
in code should be like this
your code
onClick: () {
if (widget.bottomPickerType ==BottomPickerType.simple) {
widget.onSubmit?.call(selectedItemIndex);
} else if (widget.bottomPickerType ==BottomPickerType.dateTime ||
widget.bottomPickerType == BottomPickerType.time ) {
widget.onSubmit?.call(selectedDateTime);
} else {
widget.onSubmitPressed?.call(
selectedFirstDateTime,
selectedSecondDateTime,
);
}
onClick: () {
if (widget.bottomPickerType ==BottomPickerType.rangeDateTime) {
The text was updated successfully, but these errors were encountered: