入门

用法

待办事项:包括针对软件包用户的简短而有用的示例。将更长的示例添加到/example文件夹中。

 SizedBox(
      width: context.width,
      child: Column(children: [
        TimelineFlutter(
          title: "11",
          width: context.width,
          height: WidgetSizes.spacingOneHundred,
          circleWidget: _circleTextWidget(context, "1"),
          contentChild: Container(
            color: Colors.red,
          ),
        ),
        TimelineFlutter(
          title: "11",
          width: context.width,
          height: WidgetSizes.spacingTwoHundred,
          circleWidget: _circleTextWidget(context, "2"),
          contentChild: ColoredBox(color: Colors.blue),
        ),
        TimelineFlutter(
          contentChild: ColoredBox(color: Colors.black45),
          title: "11",
          width: context.width,
          height: WidgetSizes.spacingTwoHundredFifty,
          circleWidget: _circleTextWidget(context, "3"),
        )
      ]),
    );

UI 示例

GitHub

查看 Github