Skip to content

Can we control the gradient size inside the graph? #100

@divyanshu2345

Description

@divyanshu2345

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,
),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions