time_slot_widget 0.1.1 copy "time_slot_widget: ^0.1.1" to clipboard
time_slot_widget: ^0.1.1 copied to clipboard

time slot widget

.

时间轴的widget #

Features #

img_1.png 用于预约会议室时间段显示

Getting started #

dependencies:
  flutter:
    sdk: flutter
  time_slot_widget: 0.1.0

Usage #

TimeSlotWidget(
  timeItemBuilder: (int index) {
    int start = 10 + index * max(2, indexFirst + 2);
    int end = start + 1;
    return TimeItemEntity(
      start: buildDateTime(start),
       end: buildDateTime(end),
    );
  },
  count: 3,
  timeStyle: TimeStyle(
    height: (50 + indexFirst).toDouble(),
    timeHeight: (24 + indexFirst*2).toDouble(),
  ),
);

Additional information #

4
likes
150
points
12
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

time slot widget

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on time_slot_widget