.

时间轴的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

Libraries

time_slot_widget