chulwoo-park/timelines

Stacked InnerTimeline

Closed this issue · 1 comments

Thanks for contribute this plugin.

i faced Stacked InnerTimeline issue.

i want to display 3 line in InnerTimeline (inside contentsBuilder) so it only work 2 line.

here is my code:

contentsBuilder: (_, index) {
            if (isEdgeIndex(index)) {
              return null;
            }
            return Container(
              padding: EdgeInsets.only(left: 8.0),
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                mainAxisSize: MainAxisSize.min,
                children: [
                  Flexible(
                    child: Text(
                      childs[index -1].note ?? "",
                      style: TextStyle(
                        color: Color(0xFF4964D8),
                        fontSize: 16.0,
                        fontWeight: FontWeight.w500,
                        fontFamily: 'AvenirRoman',
                      ),
                    )
                  ),
                  // Flexible(child: _buildTags(childs[index - 1].tags)),
                  Flexible(
                    child: Text(
                      myParseDatetime1(childs[index - 1].createdAt),
                      style: TextStyle(
                        color: Color(0xFFA8A8A8),
                        fontSize: 14.0,
                        fontWeight: FontWeight.w500,
                        fontFamily: 'AvenirRoman',
                      ),
                    )
                  ),
                  Text('123')
                ],
              ),
            );

          },

Screen Shot 2021-01-06 at 16 52 53

here is 2 line. it's work

Screen Shot 2021-01-06 at 17 00 31

@ngockhanhbl Can you check if you are specifying itemExtentBuilder or itemExtent?