Hi,
I create a custom widget inside the appointmentBuilder that contains a star/unstar IconButton. Unfortunately clicking on that button does not work. Instead of invoking the onPressed method of the IconButton the onTab of SfCalendar is invoked. Is there a possibility to make the tab on the IconButton work?
Use the following widget within appointmentBuilder:
appointmentBuilder: (context, details) {
return DecoratedBox(
decoration: BoxDecoration(
color: Theme.of(context).accentColor.withOpacity(0.75)),
child: Padding(
padding: const EdgeInsets.all(4.0),
child: IconButton(
tooltip: "Als Favorit Markieren",
icon: Icon(Icons.favorite),
color: Colors.white,
onPressed: () => {
print('ok')
},
),
),
);
}