Skip to content

Commit

Permalink
🔨 fixes #6 & 0.0.4+8 release
Browse files Browse the repository at this point in the history
  • Loading branch information
softmarshmallow committed Sep 2, 2020
1 parent 39a94d8 commit 0bb4bad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/lib/screen/plain_timeline_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class _PlainTimelineDemoScreenState extends State<PlainTimelineDemoScreen> {

Widget _buildTimeline() {
return TimelineTheme(
data: TimelineThemeData(lineColor: Colors.blueAccent),
data: TimelineThemeData(lineColor: Colors.blueAccent, itemGap: 180),
child: Timeline(
indicatorPosition: IndicatorPosition.top,
altOffset: Offset(0, -24),
Expand Down
3 changes: 2 additions & 1 deletion lib/timeline.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,9 @@ class _LineIndicatorPainter extends CustomPainter {
final indicatorRadius = indicatorSize / 2;
final maxIndicatorRadius = maxIndicatorSize / 2;
final indicatorMargin = indicatorRadius + lineGap;
final safeItemGap = (indicatorSize / 2) + lineGap;
final safeItemGap = (indicatorRadius) + itemGap;
double topStartY = 0.0;

// region calculate starting point
/*
switch (indicatorPosition) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_timeline
description: a fully customizable & general timeline widget, based on real-world application references
version: 0.0.4+7
version: 0.0.4+8
homepage: https://github.com/softmarshmallow/flutter-timeline
repository: https://github.com/softmarshmallow/flutter-timeline

Expand Down

0 comments on commit 0bb4bad

Please sign in to comment.