chore: bump version #37

Merged
hernik merged 15 commits from dev into main 2024-02-26 23:35:49 +01:00
Showing only changes of commit bd17e12e1b - Show all commits

View file

@ -428,11 +428,39 @@ class _CategoriesPieChartState extends State<CategoriesPieChart> {
(index) => Padding(
padding: const EdgeInsets.all(8),
child: Indicator(
size: touchedIndex == index ? 18 : 16,
size: (touchedIndex != -1 &&
touchedIndex ==
widget.categories
.where(
(element) => widget.entries
.where(
(w) =>
w.category.id ==
element
.id, // TODO: more elegant fix
)
.isNotEmpty,
)
.toList()
.indexOf(widget.categories[index]))
? 18
: 16,
color: widget.categories[index].color,
text: widget.categories[index].name,
textStyle: TextStyle(
fontWeight: (touchedIndex == index)
fontWeight: (touchedIndex != -1 &&
touchedIndex ==
widget.categories
.where(
(element) => widget.entries
.where(
(w) =>
w.category.id == element.id,
)
.isNotEmpty,
)
.toList()
.indexOf(widget.categories[index]))
? FontWeight.bold
: FontWeight.normal,
),