Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
softmarshmallow committed Sep 3, 2020
1 parent 9cde99c commit 8e1bf12
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ dependencies:
```

*using offset*

```dart
Widget _buildTimeline() {
return Timeline(
Expand All @@ -70,14 +71,40 @@ Widget _buildTimeline() {
```





*using anchor & offset*

```dart
TimelineEventDisplay get plainEventDisplay {
return TimelineEventDisplay(
anchor: IndicatorPosition.top,
indicatorOffset: Offset(0, 24),
child: TimelineEventCard(
title: Text("multi\nline\ntitle\nawesome!"),
content: Text("someone commented on your timeline ${DateTime.now()}"),
),
indicator: randomIndicator);
}
```



## references
https://www.pinterest.com/official_softmarshmallow/flutter-timeline/


## complex example

<img src="./doc/images/desk-ss-01.png" width="400"/>



## simple example [(run it now!)](https://softmarshmallow.github.io/flutter-timeline/)
![demo app](doc/images/mac-ss.png)
![demo app](doc/images/mac-ss-2.png)
![demo app](doc/images/mac-ss-3.png)
<img src="./doc/images/mac-ss.png" width="500"/>
<img src="./doc/images/mac-ss-2.png" width="500"/>
<img src="./doc/images/mac-ss-3.png" width="500"/>

more documentation available at [github](https://github.com/softmarshmallow/flutter-timeline)

Expand Down
Binary file added doc/images/desk-ss-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8e1bf12

Please sign in to comment.