manage_calendar_events 1.0.3 copy "manage_calendar_events: ^1.0.3" to clipboard
manage_calendar_events: ^1.0.3 copied to clipboard

outdated

A flutter plugin which will help you to add, edit and remove the events (with reminders) from your (Android and ios) calendars

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:manage_calendar_events/manage_calendar_events.dart';

import 'screens/calendar_list.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(home: new CalendarPluginCheck());
  }
}

class CalendarPluginCheck extends StatelessWidget {
  final CalendarPlugin _myPlugin = CalendarPlugin();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Plugin example app'),
      ),
      body: Center(
        child: RaisedButton(
          onPressed: () {
            _myPlugin.hasPermissions().then((value) {
              if (!value) {
                _myPlugin.requestPermissions();
              } else {
                Navigator.push(context,
                    MaterialPageRoute(builder: (context) => CalendarList()));
              }
            });
          },
          child: Text("Show Calendars"),
        ),
      ),
    );
  }
}
40
likes
0
pub points
89%
popularity

Publisher

unverified uploader

A flutter plugin which will help you to add, edit and remove the events (with reminders) from your (Android and ios) calendars

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on manage_calendar_events