Package selection guidance compiled from public package information, community data, and project usage.
The time_slot package is a Flutter utility designed to simplify the creation and management of time slots. It allows developers to generate time intervals based on a specified duration or a custom list of date times. The package also provides functionality to determine the day part (e.g., morning, afternoon, evening) corresponding to a given time. Ideal for scheduling apps, booking systems, or any application requiring structured time representation, it supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.
Use cases
Scheduling appointments
Booking system time selection
Event planning tools
Time-based UI components
Daily activity tracking
Key features
Generate time slots from interval or list
Determine day part names from time
Cross-platform compatibility
Simple API integration
Supports custom time ranges
Lightweight and fast
Suitable for
Calendar and booking apps
Time-based data visualization
User-facing time pickers
Mobile and web scheduling interfaces
Developers needing time slot logic
Considerations
Requires manual handling of time zone differences
Limited to time slot generation and day part detection
No built-in UI components
Does not support recurring time patterns
Assumes input times are valid and ordered
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
time_slot
A new Flutter package which helps in creating time slots with given time interval or list of date times and get day part name of time, and this package allow localization ar and en.
Demo gif
Installation
Add this to your package's pubspec.yaml file:
dependencies:time_slot:any
Get the package using your IDE's GUI or via command line with