-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hello, can you help me migrate this code to the new version.
- This way I could only see the current time bubble:
itemOptions: BubbleItemOptions(
colorForValue: (_, value, [min]) {
horaValor++;
if (horaValor > 23) {
horaValor = 0;
}
if (value != null) {
if (hora == horaValor) {
return Colors.white;
}
}
return Colors.transparent;
},
),
This doesn't work because it draws the bubble at the bottom:
itemOptions: BubbleItemOptions(
maxBarWidth: 4,
bubbleItemBuilder: (data) {
if (data.itemIndex == hora) {
return const BubbleItem(color: Colors.white);
}
return const BubbleItem(color: Colors.transparent);
},
),
- This is how I managed to draw the middle line of the data:
backgroundDecorations: [
TargetLineDecoration(
target: dataHoy.calcularPrecioMedio(dataHoy.preciosHora),
targetLineColor: Colors.blue,
lineWidth: 1,
),
],
Thank you
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working