showDialogPicker method
Implementation
void showDialogPicker(BuildContext context){
selectedTime = showTimePicker(
context: context,
initialTime: TimeOfDay.now(),
builder: (BuildContext context, Widget? child) {
return Theme(
data: ThemeData.light(),
child: child!,
);
},
);
selectedTime.then((value) {
setState(() {
if(value == null) return;
time = value.hour.toString() + " : " + value.minute.toString();
});
}, onError: (error) {
print(error);
});
}