device_calendar_ohos 1.0.0
device_calendar_ohos: ^1.0.0 copied to clipboard
This plugin provides functionalities for reading, creating, updating, and deleting calendar events on the 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'));
}
},
);
}
}