time_slot
1.0.2, released 2 years ago by mohamed-abdo.com
Flutter package to create and manage selectable time slot grids and calculate day parts.
What it does
Provides widgets for displaying time slots in a grid view generated from intervals or a list of DateTimes. It also includes utility functions to determine the day part name of a given time with localization support.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display a grid of time slots for booking or scheduling appointments
- You need to generate time slots based on a start time, end time, and interval
- You need to partition time into day parts with localization support
Skip it when
- You need full calendar views with events and month/week displays
- You require complex recurring appointment rules
Strengths
- Supports grid views generated from both intervals and date lists
- Includes support for multiple selection and disabled time slots
- Supports localization for Arabic and English
Weaknesses
- Limited to two languages (ar and en) out of the box
- Not a full calendar or scheduling solution
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
not documented
TimesSlotGridViewFromInterval(
locale: "en",
initTime: selectTime,
crossAxisCount: 4,
timeSlotInterval: const TimeSlotInterval(
start: TimeOfDay(hour: 10, minute: 00),
end: TimeOfDay(hour: 22, minute: 0),
interval: Duration(hours: 1, minutes: 0),
),
onChange: (value) {
setState(() {
selectTime = value;
});
},
)Alternatives
Packages that do the same job and could replace time_slot.
- day_picker
A Flutter widget library that helps users select days of the week.
46Compare - textfield_search
TextField widget to search and select values from a static list or future.
76Compare - country_state_city
Display a list of world-wide countries, states, and cities depending on given country.
48Compare - mask_text_input_formatter
TextInputFormatter for TextField and TextFormField to format input using a given mask.
50Compare
Works with
Packages commonly used together with time_slot: ones it builds on, ones built on it, and its own family.