interval_time_selector
Interval time picker interval minutes, specific hour. This package help us to select time of day, allow us to select specific hours selectable and minute interval this package is update on the package day_night_time_picker. We use this package and modified the code to fit to select specific hours.
Features
Help you to select specific hours selectable and minute interval.
Screenshots
💻 Installation
In the dependencies: section of your pubspec.yaml, add the following line:
interval_time_selector:<latest_version>
Import in your project
import 'package:interval_time_selector/show_time_picker/day_time_picker.dart';
Usage
Navigator.of(context).push(
showPicker(
workingHours: [0, 1, 9, 12, 11, 12, 13, 15, 19, 23],
context: context,
value: _time,
ascending: true,
onChange: onTimeChanged,
maxMinuteAtMaximumHour: 40,
minMinuteAtMinimumHour: 20,
onChangeDateTime: (DateTime dateTime) {
debugPrint("[debug datetime]: $dateTime");
},
),
);
Longer examples find in /example
folder example.
👨 Updated By
Mohamad Abd-Ulaziz Mail
Getting started
For help getting started with Flutter, view our online documentation .
Libraries
- interval_time_picker
- show_time_picker/common/display_value
- show_time_picker/common/filter_wraper
- show_time_picker/common/wraper_container
- show_time_picker/common/wraper_dialog
- show_time_picker/day_time_picker
- show_time_picker/state/state_container
- show_time_picker/state/time
- show_time_picker/utils/constant
- show_time_picker/utils/utils
- show_time_picker/widgets/am_pm
- show_time_picker/widgets/android_builder/day_time_picker_android
- show_time_picker/widgets/sun_moon