小编use*_*384的帖子

Flutter 图表 PanAndZoomBehavior 不会缩放手势的中心

I used https://github.com/google/charts inside my flutter app. It works great. But when i zoom on chart, the zoom happens but in the wrong place! It starts expanding keeping the left static. The effect is the chart slide under your finger zooming not in the point you are zooming to. Is there a way to zoom like you zoom on a picture on gallery?

code of my chart

Widget build(BuildContext context) {
    return new charts.LineChart(
      _chartSeriesFromChartData(seriesList),
      animate: false,
      defaultRenderer: charts.LineRendererConfig(includeArea: true, …
Run Code Online (Sandbox Code Playgroud)

charts flutter

1
推荐指数
1
解决办法
3693
查看次数

标签 统计

charts ×1

flutter ×1