-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
Using this in TabBarView
SizedBox(
width: 100,
height: 200,
child:
dayNightPicker.showPicker(
dialogInsetPadding: const EdgeInsets.symmetric(
horizontal: 20.0, vertical: 24.0),
width: 100,
height: 200,
amLabel: "AM",
pmLabel: "PM",
isInlinePicker: true,
cancelText: S.of(context).cancel,
okText: S.of(context).ok,
displayHeader: false,
context: context,
value: Time.fromTimeOfDay(TimeOfDay.now(), null),
// optional
duskSpanInMinutes: 120, // optional
onChange: (Time) {
print("$Time");
},
onChangeDateTime: (dateTime) {
if (dateTime != null) {
final DateTime selectedTime = pickUpTime.copyWith(
hour: dateTime.hour, minute: dateTime.minute);
pickUpTime = selectedTime;
_updateOnChanges(
input: CarInput.pickupTime,
val: selectedTime);
}
setState(() {});
}),
),
i have to rely on without inline one please guide
Metadata
Metadata
Assignees
Labels
No labels