Skip to content

Commit 0bb4bad

Browse files
🔨 fixes #6 & 0.0.4+8 release
1 parent 39a94d8 commit 0bb4bad

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

example/lib/screen/plain_timeline_demo.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class _PlainTimelineDemoScreenState extends State<PlainTimelineDemoScreen> {
9191

9292
Widget _buildTimeline() {
9393
return TimelineTheme(
94-
data: TimelineThemeData(lineColor: Colors.blueAccent),
94+
data: TimelineThemeData(lineColor: Colors.blueAccent, itemGap: 180),
9595
child: Timeline(
9696
indicatorPosition: IndicatorPosition.top,
9797
altOffset: Offset(0, -24),

lib/timeline.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,9 @@ class _LineIndicatorPainter extends CustomPainter {
210210
final indicatorRadius = indicatorSize / 2;
211211
final maxIndicatorRadius = maxIndicatorSize / 2;
212212
final indicatorMargin = indicatorRadius + lineGap;
213-
final safeItemGap = (indicatorSize / 2) + lineGap;
213+
final safeItemGap = (indicatorRadius) + itemGap;
214214
double topStartY = 0.0;
215+
215216
// region calculate starting point
216217
/*
217218
switch (indicatorPosition) {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_timeline
22
description: a fully customizable & general timeline widget, based on real-world application references
3-
version: 0.0.4+7
3+
version: 0.0.4+8
44
homepage: https://github.com/softmarshmallow/flutter-timeline
55
repository: https://github.com/softmarshmallow/flutter-timeline
66

0 commit comments

Comments
 (0)