chulwoo-park / timelines

A powerful & easy to use timeline package for Flutter! 🚀
https://pub.dev/packages/timelines
MIT License
721 stars 147 forks source link

How to add timeline in the end? #66

Open huynguyen96419 opened 1 year ago

huynguyen96419 commented 1 year ago

Currently, my timeline like this image: Screenshot 2023-11-13 at 10 17 31 AM But i wanna like this image, add line in the end (in red square), so how to do this? Screenshot 2023-11-13 at 10 19 45 AM My code:

Expanded(
                          child: Timeline.tileBuilder(
                            theme: TimelineThemeData(
                              nodePosition: 0,
                              color: ThemeHelper.backgroundRealm(context),
                              connectorTheme: const ConnectorThemeData(
                                thickness: 3.0,
                              ),
                            ),
                            builder: TimelineTileBuilder.connected(
                              indicatorBuilder: (context, index) {
                                return DotIndicator(
                                  size: 18,
                                  color: ThemeHelper.primaryBlueColor(context),
                                  border: Border.all(
                                    color: ThemeHelper.borderProcessHistoryDot(
                                        context),
                                    width: 3,
                                  ),
                                );
                              },
                              connectorBuilder: (_, index, connectorType) {
                                return SolidLineConnector(
                                  indent: connectorType == ConnectorType.start
                                      ? 5.0
                                      : 5.0,
                                  endIndent: connectorType == ConnectorType.end
                                      ? 5.0
                                      : 5.0,
                                  color: ThemeHelper.black(context),
                                  thickness: 1,
                                );
                              },
                              indicatorPositionBuilder: (context, index) => 0,
                              contentsBuilder: (_, index) => WidgetA,
                              itemExtentBuilder: (_, index) {
                                return 110;
                              },
                              itemCount: processHistoryList.length,
                            ),
                          ),
                        )

Thank you so much!

Trung15010802 commented 3 weeks ago

any solution bro?