https://github.com/ponnamkarthik/timelineview
A Flutter package to show a timeline kind of view
https://github.com/ponnamkarthik/timelineview
Last synced: 3 months ago
JSON representation
A Flutter package to show a timeline kind of view
- Host: GitHub
- URL: https://github.com/ponnamkarthik/timelineview
- Owner: ponnamkarthik
- License: mit
- Created: 2019-07-19T09:24:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-02T13:38:27.000Z (almost 3 years ago)
- Last Synced: 2025-05-18T14:08:18.372Z (5 months ago)
- Language: Dart
- Size: 75.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# TimelineView
# How to use
```dart
TimelineView(
activeIndex: activeIndex, // active index default (0)
showLabels: false, // weather to show lables at bottom or not default (true)
circleRadius: 15.0, // radius of the circle ignored if selected and unSelectedWidgets are provided
lineHeight: 2.0, // Height of line will be ignored if lineWidget is provided
lineWidget: _lineWidget, // Widget will be placed in the line
selectedTextStyle: , // selected item label style
selectedWidget: , // selected widget
unSelectedTextStyle: , // unselected item label style
unSelectedWidget: , // unselected widget
onChanged: (index) {
setState(() {
activeIndex = index;
});
}, // onSelection changed trigger
labelWidgets: [
Text("One"),
Text("TwoThree"),
Text("Four"),
], // list of items
),
```