我需要实现类似于此的甘特图 https://www.primefaces.org/showcase/ui/data/timeline/custom.xhtml ,但在charts_flutter或任何其他类似的库中似乎没有这样的图表。 我一直在任何流行的图表库中寻找类似的东西,但没有运气:(
最佳答案
检查链接..
class GanttChart extends StatelessWidget {
final AnimationController animationController;
final DateTime fromDate;
final DateTime toDate;
final List<Project> data;
final List<User> usersInChart;
int viewRange;
int viewRangeToFitScreen = 6;
Animation<double> width;
GanttChart({
this.animationController,
this.fromDate,
this.toDate,
this.data,
this.usersInChart,
}) {
viewRange = calculateNumberOfMonthsBetween(fromDate, toDate);
}
关于flutter - flutter/dart 中的甘特图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61265280/