pie_chart icon indicating copy to clipboard operation
pie_chart copied to clipboard

Can we control the gradient size inside the graph?

Open divyanshu2345 opened this issue 1 year ago • 1 comments

Hey there, Thanks @apgapg for creating beautiful library. I'm using this library to enhance my knowledge and i notices one thing that when we give the gradient inside the ring and when the value is full then the gradient size is decreased. How can we increase the size of the gradient. I attached the code below:

final gradientList = <List<Color>>[
  [
    Color.fromRGBO(223, 250, 92, 1),
    Color.fromRGBO(129, 250, 112, 1),
  ],
  [
    Color.fromRGBO(129, 182, 205, 1),
    Color.fromRGBO(91, 253, 199, 1),
  ],
  [
    Color.fromRGBO(175, 63, 62, 1.0),
    Color.fromRGBO(254, 154, 92, 1),
  ]
];

PieChart(
  dataMap: {"Flutter" : 5},
  chartType: ChartType.ring,
  chartRadius: 100,
  ringStrokeWidth: 10,
  baseChartColor: pieChartGreyColor,
  colorList: colorList,
  totalValue: 5,
  gradientList: gradientList
  emptyColor: Colors.white,
),

divyanshu2345 avatar Jun 27 '23 11:06 divyanshu2345

Can you please explain about increase in gradient size? May be some screenshots will help

apgapg avatar Jun 28 '23 07:06 apgapg