This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Material App', | |
| debugShowCheckedModeBanner: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (Build.VERSION.SDK_INT >= 14) { | |
| Intent intent = new Intent(Intent.ACTION_INSERT) | |
| .setData(Events.CONTENT_URI) | |
| .putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis()) | |
| .putExtra(CalendarContract.EXTRA_EVENT_END_TIME, endTime.getTimeInMillis()) | |
| .putExtra(Events.TITLE, "Yoga") | |
| .putExtra(Events.DESCRIPTION, "Group class") | |
| .putExtra(Events.EVENT_LOCATION, "The gym") | |
| .putExtra(Events.AVAILABILITY, Events.AVAILABILITY_BUSY) | |
| .putExtra(Intent.EXTRA_EMAIL, "rowan@example.com,trevor@example.com"); |