I want the user to pick the date and time, for that there is date time picker dialogue.
But, is there a way that, I could show the date-time persistently on some flutter widget and use like any other widget?
Container(
child: showTimePicker(
context: context,
initialTime: TimeOfDay.now(),
builder: (BuildContext context, Widget child) {
return Theme(
data: ThemeData.dark(),
child: child,
);
},
);
}
but I cannot use showTimePicker
as Widget.
How to use showTimePicker()
as widget? so that other widgets can be built on top of it.
showTimePicker
is a dialogue that displays theTimePicker
widget, right?. I want to use thatTimePicker
in my Own Widget. hope you got my problem now. – MariselamarishshowTimePicker
.TimePicker
is a complex widget and currently, it's out of my scope. I want to useshowTimePicker()
as widget. – Mariselamarish