intent
intent copied to clipboard
Add support for custom extra types
If you pass boolean or int for other Extras, it will just try to cast them to String which will result in an exception.
Example for openning a calendar's add event page:
Intent()
..setAction(Action.ACTION_INSERT)
..setData(Uri.parse('content://com.android.calendar/events'))
..putExtra("description", dayName)
..putExtra('beginTime', time)
..putExtra('endTime', time)
..putExtra('allDay', true)
..startActivityForResult(createChooser: true)
.catchError((e) => print(e));
Thanks for reporting, I'm digging deeper