如何将两个 flutter 的迷你图放在一个地方,例如在卡片小部件中

How to put two flutter's sparklines charts in one place for example in a card widget

我尝试在同一个 flutter 卡片小部件中显示两个具有不同数据的迷你图数小时但没有成功。有人可以帮忙吗? 我使用最新的 flutter_sparkline 库。

这是我的车

             var data = [0.0, 1.0, 1.5, 2.0, 0.0, 0.0, -0.5, -1.0, -0.5, 0.0, 0.0];

                      Card(
                          elevation: 2,
                          child: Row(
                            children: <Widget>[
                              Column(
                                children: <Widget>[
                                  Sparkline(
                                    data: data,
                                    lineColor: MyColor.outlineInputBorderColor,
                                    pointsMode: PointsMode.all,
                                    pointSize: 8.0,
                                    pointColor: MyColor.Waterbotton,
                                    fallbackWidth: 280,
                                    fallbackHeight: 70,
                                  ),
                                ],
                              ),
                            ],
                          ),
                        ),

这是我实现目标的图片。

      Stack(
            children: [
              Sparkline(
                lineWidth: 5.0,
                lineColor: Colors.greenAccent,
                data: val,
              ),


 Sparkline(
                lineWidth: 5.0,
                lineColor: Colors.greenAccent,
                data: val,
              ),
            ],
          ),

你可以使用堆栈