time_slot_plugin 0.0.3 copy "time_slot_plugin: ^0.0.3" to clipboard
time_slot_plugin: ^0.0.3 copied to clipboard

Time slot plugin

time_slot_plugin #

A new Flutter project.

Getting Started #

Plugin to get time slots as list in from start time to close time

Get list of TimeOfDay #

 void getTimeSlotList() {
    TimeOfDay start = const TimeOfDay(hour: 9, minute: 0);
    TimeOfDay close = const TimeOfDay(hour: 21, minute: 0);
    int intervalInMins = 30;
    list = TimeSlotPlugin.getTimeSlotList(
        start: start, close: close, intervalTimeInMin: intervalInMins);
    setState(() {});
  }

Get list as an object of TimeSlot #

With this Object you can add your functions like select time, etc... #

  void getTimeSlotObjectList() {
    TimeOfDay start = const TimeOfDay(hour: 9, minute: 0);
    TimeOfDay close = const TimeOfDay(hour: 21, minute: 0);
    int intervalInMins = 30;
    timeSlotList = TimeSlotPlugin.getTimeSlotObjectList(
        start: start, close: close, intervalTimeInMin: intervalInMins);
    setState(() {});
  }

Image Image
Time slot with selection Time slot with no selection

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

2
likes
130
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

Time slot plugin

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on time_slot_plugin