device_calendar 4.3.1-4217521123 copy "device_calendar: ^4.3.1-4217521123" to clipboard
device_calendar: ^4.3.1-4217521123 copied to clipboard

A cross platform plugin for modifying calendars on the user's device.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'common/app_routes.dart';
import 'presentation/pages/calendars.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(),
      themeMode: ThemeMode.system,
      darkTheme: ThemeData.dark(),
      routes: {
        AppRoutes.calendars: (context) {
          return const CalendarsPage(key: Key('calendarsPage'));
        }
      },
    );
  }
}