diff --git a/lib/screens/home/top_items/top_items_section.dart b/lib/screens/home/top_items/top_items_section.dart index 5749f5d..708a3d0 100644 --- a/lib/screens/home/top_items/top_items_section.dart +++ b/lib/screens/home/top_items/top_items_section.dart @@ -92,9 +92,9 @@ class TopItemsSection extends StatelessWidget { final List> lineChartData = lineData(); final mapData = lineChartData.map((e) => e["value"]); - final List total = mapData.isNotEmpty + final double total = mapData.isNotEmpty ? mapData.reduce((a, b) => a + b) - : []; + : 0; return SizedBox( child: Column(