Skip to content

Not Working for some devices with same android version  #161

@AmanVerma1507

Description

@AmanVerma1507

I am using this plugin to add events in my Calender App
its working fine for most of the mobile but for some devices (oneplus Android 14 )
nothing happening
can you tell me the reason why this behavior

Add2Calendar.addEvent2Cal(buildEvent(i))

Event buildEvent(CalendarEventList list) {
return Event(
title: list.summary ?? '',
description: list.description ?? "",
startDate: DateTime.parse(list.start.toString().contains('dateTime')
? list.start['dateTime'].toString()
: list.start['date'].toString().substring(0, 10))
.toLocal(),
endDate: DateTime.parse(list.end.toString().contains('dateTime')
? list.end['dateTime'].toString()
: list.end['date'].toString().substring(0, 10))
.toLocal(),
);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions