0

acnt use int in piechart

code

PieChart(
              PieChartData(
                sections: [
                  PieChartSectionData(value: controller.vvip.value ,color: Color(0xff484AFF),showTitle: false),
                  PieChartSectionData(value: 476,color: Color(0xffD6A21E),showTitle: false),
                ],
              ),
            ),

controller

RxInt vvip = 10.obs ;

error

Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
MedoAhmed
  • 83
  • 7

0 Answers0