smooth_line_chart 0.0.6 copy "smooth_line_chart: ^0.0.6" to clipboard
smooth_line_chart: ^0.0.6 copied to clipboard

The simplest way to add stunning line charts to your Flutter app. Smooth bezier curves, tap/hover tooltips, dark mode, gradient fill, async data loading — all with zero dependencies.

0.0.5 #

  • padding — inner padding around the chart area (default EdgeInsets.zero).
  • Fix value labels overlapping Y-axis at leftmost point (clamp X position).
  • Fix value labels hidden when data point is near top of chart (flip below point).
  • Removed stale lib/main.dart from package root.

0.0.4 #

Functional

  • onPointTap — callback when user taps a data point (index, x, y, qty, range).

  • yMin — set a minimum Y value so charts with high baseline data aren't flat.

  • emptyWidget — custom widget shown when yValues is empty; defaults to "No data".

  • onRangeChanged on SmoothLineChartAsync — called whenever the user switches range.

  • height — fixed chart height in pixels as alternative to aspectRatio.

Visual

  • ChartTheme.showDots + dotRadius — show dots at every data point.
  • ChartTheme.showValueLabels + valueLabelStyle — show Y value text above each point.
  • ChartTheme.fillGradient — gradient fill below the line (overrides fillColor).
  • backgroundColor + borderRadius on ChartCard / SmoothLineChart — card styling.

0.0.3 #

  • Fix tooltip dismiss — tapping the active point now correctly hides the tooltip (was re-shown by onPanUpdate firing after onTapDown).
  • Y labels overlay — new yLabelOverlay: true (default) draws Y labels inside the chart, making it flush with any title above it. No extra left space consumed.
  • Tooltip arrow — new tooltipArrow: true shows a downward triangle pointer on the tooltip pointing toward the active data point.

0.0.2 #

  • Flexible JSON parsingChartData.fromMap() and ChartData.fromList() factories for any JSON shape. fromPayload now also accepts flat lists and common key aliases (label, x, y, quantity, dateRange).
  • Tooltip dismiss — tap the active point again (or anywhere outside the chart) to close the tooltip on mobile/touch devices.
  • Grid toggleChartTheme.showGrid (default true); set to false to hide all grid lines.
  • Custom Y-axis labelsChartCard.yAxisLabels / SmoothLineChart.yAxisLabels lets you supply arbitrary text for each Y tick (e.g. ['0', '500 Rb', '1 Jt']).

0.0.1 #

  • Initial release.
  • ChartCard — interactive line + area chart with hover/tap tooltips.
  • SmoothLineChart — simple one-widget entry point with optional title.
  • SmoothLineChartAsync — built-in range selector + async data loading.
  • RangeSelector — customizable pill-button time range picker.
  • ChartData — data model with optional fromPayload factory.
  • ChartTheme — full color/style configuration including a dark preset.
  • Zero external dependencies — pure Flutter + dart:math.
2
likes
145
points
17
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

The simplest way to add stunning line charts to your Flutter app. Smooth bezier curves, tap/hover tooltips, dark mode, gradient fill, async data loading — all with zero dependencies.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on smooth_line_chart