chore: publish version 1.1.1 #43

Merged
hernik merged 27 commits from dev into main 2024-04-22 17:05:22 +02: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,
),